Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 3 of 3

Thread: Beginner Java help please

  1. #1
    Junior Member
    Join Date
    Feb 2014
    Posts
    4
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Unhappy Beginner Java help please

    Help with java assignment please!

    I am writing a code to show how much time it took to finish a race in military time. For example: start time is 1445 and end time is 1730 which means that person took 2 hours and 51 minutes. I need to create a method that returns me the hour portion of the elapsed time, which is 2. I cannot do this with any "if" statements in the code. I just cant seem to understand where to go from here or how to format the arithmetic inside the method.


     
    public void returnHour()
            {
     
     
            }


  2. #2
    Member
    Join Date
    Nov 2013
    Location
    Bangalore, India
    Posts
    70
    My Mood
    Cool
    Thanks
    0
    Thanked 6 Times in 6 Posts

    Default Re: Beginner Java help please

    We can't solve your problem here. Try something and post specific errors you face.

  3. #3
    Super Moderator
    Join Date
    Jun 2013
    Location
    So. Maryland, USA
    Posts
    5,520
    My Mood
    Mellow
    Thanks
    215
    Thanked 698 Times in 680 Posts

    Default Re: Beginner Java help please

    Please don't start multiple threads on the same topic. This one is closed.

Similar Threads

  1. Java for beginner
    By aizenrhey in forum What's Wrong With My Code?
    Replies: 6
    Last Post: February 1st, 2014, 05:19 AM
  2. java beginner
    By vitalisT in forum Member Introductions
    Replies: 2
    Last Post: November 5th, 2013, 09:47 AM
  3. Replies: 2
    Last Post: January 18th, 2013, 11:12 AM
  4. Replies: 1
    Last Post: January 6th, 2013, 06:32 AM
  5. JAVA Beginner needs help
    By rhaupert in forum Member Introductions
    Replies: 1
    Last Post: February 12th, 2012, 09:27 AM

Tags for this Thread