title: Extract values from a given format with limited String Methods and no control structures
body: <p>For my java program I basically have to parse user input in this syntax: lastName, firstName middleName <em>with</em> the <strong>comma</strong>.</p>
  
  <p>This is normally easy but I have to use the methods taught in my beginner class such as: <code>indexOf</code>, <code>substring</code>, and <code>parseInt</code> along with all primitive data types and no if else statements. I can't use <code>length()</code>, or use one number instead of two. only the version of <code>substring</code> with two arguments can be used;
  Thanks all!  </p>
  
  <p>Edit: the following code i have is what i got so far. All i need to do is convert the syntax: Last, First Middle to First Middle Last without the comma.</p>
  
  <pre><code>       Scanner input = new Scanner (System.in);
         System.out.println("\fEnter your name in this syntax: Last, First Middle");
         String inputGet = input.nextLine();
  
         int comma = inputGet.indexOf(",");
         System.out.println(comma);
         String lastNameGet = inputGet.substring(0,comma);
         System.out.println(lastNameGet);
         System.out.println(inputGet);
  </code></pre>