+ 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

6th May 2018, 1:49 PM
mosby steve
mosby steve - avatar
5 Respostas
+ 4
write like this system.out.println(Result); not like you wrote it
6th May 2018, 1:58 PM
☇☇The Flash☇☇
☇☇The Flash☇☇ - avatar
+ 7
I'm calling the authorities, we don't allow illegal activity here! ...I'm kidding.
6th May 2018, 5:22 PM
Ahri Fox
Ahri Fox - avatar
+ 4
Thanks everyone for answering
6th May 2018, 2:43 PM
mosby steve
mosby steve - avatar
+ 3
You can use print format System.out.printf("Result: %d", result);
6th May 2018, 2:04 PM
TurtleShell
TurtleShell - avatar