title: Java won't loop properly
body: <p>For some reason this program won't <code>loop</code> correctly, its supposed to wait for user input, then decide on weather or not it should loop.Instead, it skips the user input part, goes straight to deciding it needs to <code>loop</code>, then allows user input to be taken into account. </p>
  
  <p>For example, it asks for a number, i type 5, then it says "would you like to go again?" "Please use either yes or no, case sensitive!" "would you like to go again?".After it has run that it will accept user input,I thought about using a sleep(2000),but I don't want it to just skip over and assume the user didn't put anything in.I am stumped! keep in mind this is my second day working with java. I am a <code>newbie</code> and this is only the 3rd program i am working on. I had this issue on another program but i managed to fix it just fine.However this one seems to not want to work in the same fashion despite the fact that i did framework exactly the same.</p>
  
  <pre><code>do {
                  System.out.println("would you like to go again?");
                  if (input.hasNextLine()){
  
                      again = input.nextLine();
                      if (again.equals("yes")){
                          yon2 = false;
                          dateconverter.main(args);
                      }else if (again.equals("no")){
                          System.out.println("good bye");
                          Thread.sleep(4000);
                          System.exit(0);
                      }else{
                          yon2 = true;
                          System.out.println("Please use either yes or no. caps sensative!");
                      }
                  }
              } while (!(yon2 = false));
  </code></pre>