java question mark


Page 1 of 1

1 Replies - 685 Views - Last Post: 04 March 2010 - 10:52 AM Rate Topic: -----

#1 Joaena  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 1
  • Joined: 04-March 10

java question mark

Posted 04 March 2010 - 10:38 AM

Hi Friend..
I need some help with my java question. And im kinda stuck... I have done some parts but I cant get em to work with eachother.... any can help me please... :001_icon16:

I do no this answer...!!!!! Please Can U HeLp me..... Email Me..!!!!
Define a class called Month. Your class will have one attribute of type int to represent a month (1 for January, 2 for February, and so forth). Include all the
following methods in this class:
(a) a constructor to set the month using the first three letters in the name ofthe month as three arguments (J A N for January, F E B for February, and so forth),

(B) a constructor to set the month using an integer as an argument (1 for January, 2 for February, and so forth),
Test your class in a new program which has the main() method.


Is This A Good Question/Topic? 0
  • +

Replies To: java question mark

#2 macosxnerd101  Icon User is online

  • Games, Graphs, and Auctions
  • member icon

Reputation: 11950
  • View blog
  • Posts: 44,717
  • Joined: 27-December 08

Re: java question mark

Posted 04 March 2010 - 10:52 AM

We will be happy to help you with code you wrote, but we will not do your homework for you. Also, we prefer to work in the forums so that everyone can benefit and use the thread as a reference months and years from now. By emailing you the answer, others couldn't benefit.

Dream.In.Code has a policy by which we prefer to see a good faith effort on your part before providing source code for homework assignments. Please post the code you have written in an effort to resolve the problem, and our members would be happy to provide some guidance. Be sure to include a description of any errors you are encountering as well.

Please post like this:

Thank you for helping us helping you.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1