0
I got error ! How to solved?
import java.util.Scanner; public class Program { public static void main(String[] args) { Scanner User = new Scanner(System.in); System.out.println("Welcome to the Theater!"); System.out.println("_______________________"); System.out.println("Please type in your age"); int age=User.nextLine(); if (age<20){ System.out.println ("Congratulation, you got discount 20%"); }else{ System.out.println("Oooop! You are not
3 Antworten
+ 2
need
int age = User.nextInt();
0
thank you for your help