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

21st Apr 2019, 7:09 AM
Swathi Thiyagu
Swathi Thiyagu - avatar
1 Resposta
0
You write new scanner, but it's supposed to be new Scanner.
22nd Apr 2019, 10:00 AM
Bela Brockmann
Bela Brockmann - avatar