0
When i open the new hotel so i give an 50%offer for first five member who came .After 5 has't eligble
Public class Hotel() { Scanner nice = new scanner(System.in); System.out.println("!!Hey dudes wekcome to food world!!"); System.out.println("please enter the token number"); For(int x=0;x<5;x++) { Int Hotel= nicr.nextInt(); System.out.println("cingratz u people r win today"); } If(x<6) { System.out.println("better luck in next time"); } } } //its throw the error messge. Please tell me how i get output for this code
1 ответ
0
You write new scanner, but it's supposed to be new Scanner.