hi, i am creating this basic program/game. i need to get two inputs from the user. the problem is when i run the program it gets the first input from the user but then doesn't get the second input.. please help, the code is as follows:
public class game { public static void main(String[] args) { char rock = 'r'; char paper = 'p'; char sciccsors = 's';
do { System.out.println("Player 1 please enter a letter"); char c1 = SavitchIn.readChar();
System.out.println("Player 2 please enter a letter"); char c2 = SavitchIn.readChar();
winnercalculation(c1,c1);
game.winnercalculation(c1,c2); } while (quitoption());
}
public static void winnercalculation(char c1, char c2) { char rock = 'r'; char paper = 'p'; char sciccsors = 's';
private static boolean quitoption() { System.out.print("Would you like to repeat this program?"); System.out.println(" (y for yes or n for no)"); char answer = SavitchIn.readLineNonwhiteChar(); return ((answer == 'y') || (answer == 'Y')); } }