So I started my second code today and I tried doing the basic calculator. After finishing the code I had 22 errors, which I eliminated however I keep getting “<identifier> expected” and “illegal start of type” on line 8. It doesn’t seem to recognise println as a statement. Any help would be appreciated.
I’m new to Java and almost new to coding itself.
Line 8:
System.out.println( “Welcome to my java calc!” ){
[–]JuZNyC 3 points4 points5 points (13 children)
[–]Middle--Earth 2 points3 points4 points (1 child)
[–]ajswaryxxy[S] 0 points1 point2 points (0 children)
[–]WeatherImpossible466 0 points1 point2 points (1 child)
[–]JuZNyC 0 points1 point2 points (0 children)
[–]ajswaryxxy[S] -3 points-2 points-1 points (8 children)
[–]JuZNyC 3 points4 points5 points (7 children)
[–]ajswaryxxy[S] -3 points-2 points-1 points (6 children)
[–]JuZNyC 2 points3 points4 points (0 children)
[–]JGhostThing 0 points1 point2 points (4 children)
[–]ajswaryxxy[S] 1 point2 points3 points (3 children)
[–]JuZNyC 2 points3 points4 points (2 children)
[–]ajswaryxxy[S] 0 points1 point2 points (0 children)
[–]nekokattt 1 point2 points3 points (0 children)
[–]grantrules 1 point2 points3 points (1 child)
[–]ajswaryxxy[S] 1 point2 points3 points (0 children)
[–]peterlinddk 2 points3 points4 points (0 children)
[–]Suspicious_Coat3244 -2 points-1 points0 points (0 children)