Is there any error in the following code? It shows cant find symbol, symbol: class out location: class System. In the log, it show a lot of errors, including
java.lang.
You are missing the java basics.
Processing statements should be in function only.
Scanner sc=new Scanner(System.in);
System.out.println("Enter the value of r");
int r=sc.nextInt();
System.out.println("enter the value h");
int h=sc.nextInt();
Post the above code either in function or constructor by doing changes according to your requirements.