Results 1 to 6 of 6
  1. #1
    ErtanTaboo is offline Member
    Join Date
    Jun 2015
    Posts
    14
    Rep Power
    0

    Default Can Someone Help me with a loop

    Hello everyone , I'm trying to make something like this , but i have no idea how to do that. Can someone of you help me?
    Java Code:
    If Hours is equals(==) to 1 : than Name should be written(.equals) to HoursNumber1 or HoursNumber2 or ... or HoursNumber8
    If Hours is equals(==) to 2 : than Name should be written(.equals) to HoursNumber1 and HoursNumber2 or ... HoursNumber2 and HoursNumber3 or... HoursNumber7 and HoursNumber8
    ...
    If Hours is equals(==) to 7: than Name shoud be written(.equals) to all HoursNumbers.

  2. #2
    DarrylBurke's Avatar
    DarrylBurke is offline Forum Police
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    12,059
    Rep Power
    26

    Default Re: Can Someone Help me with a loop

    Moved from AWT/Swing to New to Java.

    In future, please post in an appropriate section.

    db
    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

  3. #3
    jim829 is offline Senior Member
    Join Date
    Jan 2013
    Location
    Northern Virginia, United States
    Posts
    6,226
    Rep Power
    14

    Default Re: Can Someone Help me with a loop

    You are asking very basic questions. Have you looked at any tutorials or read any books on Java? I recommend you look at the tutorials in my signature below.

    Regards,
    Jim
    The JavaTM Tutorials | SSCCE | Java Naming Conventions
    Poor planning on your part does not constitute an emergency on my part

  4. #4
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    Eastern Florida
    Posts
    20,003
    Rep Power
    33

    Default Re: Can Someone Help me with a loop

    Another useful link: The Really Big Index
    If you don't understand my response, don't ignore it, ask a question.

  5. #5
    DarrylBurke's Avatar
    DarrylBurke is offline Forum Police
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    12,059
    Rep Power
    26

    Default Re: Can Someone Help me with a loop

    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

  6. #6
    JosAH's Avatar
    JosAH is offline Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    14,422
    Blog Entries
    7
    Rep Power
    28

    Default Re: Can Someone Help me with a loop

    I don't even understand what that pseudo code is supposed to mean ...

    kind regards,

    Jos
    Build a wall around Donald Trump; I'll pay for it.

Similar Threads

  1. Simple loop within a loop not working.
    By supremegrandruler in forum New To Java
    Replies: 3
    Last Post: 03-21-2014, 09:27 AM
  2. Replies: 2
    Last Post: 11-07-2011, 02:25 AM
  3. Replies: 1
    Last Post: 10-01-2011, 02:12 AM
  4. JTextField loop 2x for-loop WEIRD!
    By Streetproject in forum AWT / Swing
    Replies: 2
    Last Post: 02-16-2011, 05:46 PM
  5. while-loop stopping on first loop
    By davester in forum New To Java
    Replies: 6
    Last Post: 06-26-2009, 08:46 PM

Posting Permissions

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