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: Time between help - new Java user!

  1. #1
    Junior Member
    Join Date
    Feb 2019
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Time between help - new Java user!

    Afternoon all!

    First post so please bare with me!

    I've got some software that shows information for a manufacturing company.

    I'm after some code that populates a empty box with text or a number.
    The number should represent the number of products that should have passed through during the day, and text will show if it is a break time, or non production time.

    I think it's obvious that I would have it that if the time is between a and b then show c, but it would need this multiple times, and it would have to reset every morning.

    Does anyone have any idea how I could do this? I've never written any java before, but know SQL (unsure of that helps!), So I've no idea where to start.

    Thank you

  2. #2
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,162
    Thanks
    65
    Thanked 2,725 Times in 2,675 Posts

    Default Re: Time between help - new Java user!

    where to start.
    Big question.

    Take a look at the tutorial for a start. Here's a link to a list of topics: http://docs.oracle.com/javase/tutori...ybigindex.html

    Have you worked on a design for the program yet? Make a list of the detailed steps that the program needs to take to solve the problem. Once you have a design, then start at the first item in the list and work on writing and testing the code for it. When it works, move to the next item in the list.
    If you don't understand my answer, don't ignore it, ask a question.

Similar Threads

  1. Replies: 1
    Last Post: October 1st, 2014, 09:26 PM
  2. Replies: 1
    Last Post: February 24th, 2014, 04:35 PM
  3. Using Date() to get Start Time and Finish Time of a copyFiles method
    By dalythe in forum File I/O & Other I/O Streams
    Replies: 3
    Last Post: June 17th, 2013, 09:50 PM
  4. [SOLVED] Please help me first time user, and need help with a method
    By foresboo in forum What's Wrong With My Code?
    Replies: 16
    Last Post: February 12th, 2013, 04:36 PM
  5. Hello, first time caller long time programmer....
    By P2C2N in forum Member Introductions
    Replies: 3
    Last Post: December 10th, 2012, 11:53 AM