Fear Not Demon Curses
From Huben's Wiki
Line 18: | Line 18: | ||
* Where does the result appear? | * Where does the result appear? | ||
* What is the result and how could you change it? Change it! | * What is the result and how could you change it? Change it! | ||
+ | * The line with the System.out.println incantation ends with a semicolon. What does that make the line? | ||
+ | * Add still more System.out.println incantations! What happens? | ||
This demon invocation contains two major incantations. An incantation is magical lore that you need not understand, yet when repeated will still command our demons. The first incantation, '''static public void main(String[] args)''', is how we create a class of demons called '''console applications'''. The second incantation, '''System.out.println("Hello world!");''' is a statement that commands demons to print something to the console. The console is the bottom pane of Dr. Java, or in the Windows '''Command Prompt''' application. The muggle textbook tells how to do the latter in chapter 2.4. | This demon invocation contains two major incantations. An incantation is magical lore that you need not understand, yet when repeated will still command our demons. The first incantation, '''static public void main(String[] args)''', is how we create a class of demons called '''console applications'''. The second incantation, '''System.out.println("Hello world!");''' is a statement that commands demons to print something to the console. The console is the bottom pane of Dr. Java, or in the Windows '''Command Prompt''' application. The muggle textbook tells how to do the latter in chapter 2.4. |