All pastes #761191 Raw Edit

Miscellany

public java v1 · immutable
·published 2007-11-04 18:04 UTC
rendered paste body
public void go()    {	Player player1 = new Player();        Player player2 = new Player();	int validinput = 0;        Scanner scanIn = new Scanner (System.in);        System.out.println("Would you like to play a game of " +             "rock, paper, scissors?");        String response = scanIn.nextLine();	while (validinput == 0;){		if (response.equals("yes")) {      	     	    //playGame();		    validinput = 1;      		  }     		else if (response.equals("no")){		     validinput = 1;        	     quit();       		 }       		else {           	      System.out.println("Please enter yes or no only.");       	 	}	} // closes loop    }