+ 2
Illegal start
Hi I just started to learn Java and I am stuck with this error that I donât know how to fix Here the code int y = 35; Result = y*35; System.out.println(âresult=â +Result+); When I hit run it said illegal start Someone please explain
5 RĂ©ponses
+ 4
write like this
system.out.println(Result);
not like you wrote it
+ 7
I'm calling the authorities, we don't allow illegal activity here!
...I'm kidding.
+ 4
Thanks everyone for answering
+ 3
You can use print format System.out.printf("Result: %d", result);