Results 1 to 4 of 4
  1. #1
    java85 is offline Member
    Join Date
    Mar 2013
    Posts
    2
    Rep Power
    0

    Default enter name (january,february..etc) of month and get output the the number of month

    Hello, can anyone help me?

    i need to enter in console name of the month (let's say "january") and as output to get number 1

    thank you!

  2. #2
    PhHein's Avatar
    PhHein is offline Senior Member
    Join Date
    Apr 2009
    Location
    Germany
    Posts
    1,430
    Rep Power
    7

    Default Re: enter name (january,february..etc) of month and get output the the number of mont

    What have you done so far? Where are you stuck? Nobody will do it for you. Post your code and ask specific questions. Follow the link in my signature.
    Math problems? Call 1-800-[(10x)(13i)^2]-[sin(xy)/2.362x]
    The Ubiquitous Newbie Tips

  3. #3
    Ronin is offline Senior Member
    Join Date
    Oct 2010
    Posts
    393
    Rep Power
    5

    Default Re: enter name (january,february..etc) of month and get output the the number of mont

    Hi java85, welcome to the forums.

    It sounds like what you are looking for are enums. There is a good example towards the bottom of the link.
    Enum Types (The Java Tutorials > Learning the Java Language > Classes and Objects)

    Regards.

  4. #4
    java85 is offline Member
    Join Date
    Mar 2013
    Posts
    2
    Rep Power
    0

    Default Re: enter name (january,february..etc) of month and get output the the number of mont

    thank you Ronin! that's what i'm looking for. i mew in programming, so i will take some time in programming.

Similar Threads

  1. Need help with class Month assignment please!!
    By ndsmith20 in forum New To Java
    Replies: 5
    Last Post: 10-17-2012, 10:26 PM
  2. Month class
    By FOX427 in forum New To Java
    Replies: 9
    Last Post: 07-14-2012, 06:40 PM
  3. Verifying of Month
    By ŖΫ ỏ Ңόρę in forum New To Java
    Replies: 2
    Last Post: 11-02-2010, 04:34 PM
  4. How to count no of sundays in month
    By chiragkini in forum New To Java
    Replies: 3
    Last Post: 12-25-2009, 03:34 AM
  5. Current month
    By Java Tip in forum Java Tip
    Replies: 0
    Last Post: 01-07-2008, 08:40 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •