Template:Java

From Wikibooks, open books for an open world
(Redirected from User:ZeroOne/Java code)
Jump to: navigation, search


This template can be used to display Java code with syntax highlighting and a nice looking frame.

Usage[edit]

{{java|code=}}

Example[edit]

{{java|code=
for(int i=0; i<10; i++) {
    System.out.println("Hello!");
}
}}

renders as

Computer code
for(int i=0; i<10; i++) {
    System.out.println("Hello!");
}