Ask Me Help Desk

Ask Me Help Desk (https://www.askmehelpdesk.com/forum.php)
-   Java (https://www.askmehelpdesk.com/forumdisplay.php?f=440)
-   -   (Java)Need help with Loops (https://www.askmehelpdesk.com/showthread.php?t=814572)

  • Jul 26, 2015, 11:50 PM
    ineedhelp0
    (Java)Need help with Loops
    If the user inputs:
    John 91 92 93 94 95 96 97 jim 91 92 93 94 95 96 97
    The program loops twice to find john and jim's grade in the class but how do I have the loop stop once there is nothing else to compute
  • Jul 27, 2015, 08:04 AM
    CravenMorhead
    Define nothing else to compute. How are you inputing the information? Stdin? File? Dialog?
  • Jul 27, 2015, 04:16 PM
    ineedhelp0
    I need the program to continue on to the next thing after computring what the user inputed because the amount of people can be unlimited
  • Jul 28, 2015, 07:36 AM
    CravenMorhead
    Okay, how is the data being inputed?

    IS this a GUI? Command line/console application?

    The answers are VASTLY different depending on what you're doing. You should correlate what this assignment is with what is going on in class. Usually the answer is there. If not talk to a TA. I am a gifted programmer but if I have to base a solution on 20 words... not going to happen. Where is the input coming from?

  • All times are GMT -7. The time now is 07:25 AM.