0
Error-illegal start of the type System.out.println keeps coming.someone please help(i cant paste the whole code)
import java.util.Scanner; public class Nesting { public static void main (String args []) { Scanner input = new Scanner(System.in) { System.out.println("determining the greater value"); int a,b,c; { System.out.println("enter first value");
3 Answers
+ 1
You didn't put semi-colon ( ; ) in this line
Scanner input = new Scanner(System.in)
Assuming that the only thing that don't fit in your description are the closing brackets for every opening brackets you wrote, everything is good
+ 1
Just link your code from your profilw
0
Thanks a lot