if i enter "y" when prompted to play again, i get the "good bye" message. what is happening?
Code java:public static void main(String args[]) { Scanner in = new Scanner(System.in); String s; System.out.println("Welcome\n"); Game newGame = new Game(); System.out.println(); System.out.print("Play Again? Y/N "); s=in.next(); System.out.println(); if(s=="Y" || s=="y") { newGame = new Game(); } else { System.out.print("Good Bye"); } }
