1 2 3 4 5 6 7 8 9 |
public class Tricky public static main(String args) { System.out.println(Hello world); system.out.Pritnln("Do you like this program"?); System.out.println() System.println("I wrote it myself."; { } |
answer on next slide...
{
after Tricky
void
before main
[]
after String
"
marks around Hello world
system
should be System
(uppercase S)
Pritnln
should be println
(lowercase P
and fixed spelling)
?
should be before "
()
)
after "
System.println
should
be System.out.println
{
should be }
public class Tricky { public static void main(String[] args) { System.out.println("Hello world"); System.out.println("Do you like this program?"); System.out.println(); System.out.println("I wrote it myself."); } }