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");

5th Aug 2019, 3:43 PM
Ankush Raj
Ankush Raj - avatar
3 Réponses
+ 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
5th Aug 2019, 3:53 PM
Agent_I
Agent_I - avatar
+ 1
Just link your code from your profilw
5th Aug 2019, 3:47 PM
Trigger
Trigger - avatar
0
Thanks a lot
5th Aug 2019, 4:10 PM
Ankush Raj
Ankush Raj - avatar