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 2 of 2

Thread: Help to simple Java program... !

  1. #1
    Junior Member
    Join Date
    Sep 2014
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Help to simple Java program... !

    Hey !
    Im just a beginner, but I really need some help.
    I need to write a simple program that reads an amount of minutes and displays the
    approximate number of years and days for the minutes. For simplicity, assume a year has 365 days and the resulting amount of days is a whole number.

    How do I do that ? I need help to the math part of it.


  2. #2
    Senior Member
    Join Date
    Jul 2013
    Location
    Europe
    Posts
    666
    Thanks
    0
    Thanked 121 Times in 105 Posts

    Default Re: Help to simple Java program... !

    Answer the following questions:
    1) How many days does a year have?
    2) How many hours does a day have?
    3) How many minutes does an hour have?
    4) How could you use this information to solve your problem?

Similar Threads

  1. simple java program
    By sravan18 in forum JavaServer Pages: JSP & JSTL
    Replies: 6
    Last Post: August 17th, 2013, 03:56 AM
  2. how to do this simple java program?
    By avistein in forum What's Wrong With My Code?
    Replies: 17
    Last Post: January 9th, 2013, 11:22 AM
  3. Simple Java Program
    By Robbiep in forum What's Wrong With My Code?
    Replies: 6
    Last Post: October 24th, 2011, 07:27 AM
  4. PLEASE HELP!!!! simple java program...
    By parvez07 in forum Object Oriented Programming
    Replies: 5
    Last Post: August 26th, 2009, 06:38 AM
  5. help with simple java program
    By parvez07 in forum Java Theory & Questions
    Replies: 4
    Last Post: August 25th, 2009, 07:19 AM

Tags for this Thread