This template can be used to display Java code with syntax highlighting and a nice looking frame.
{{java|code=}}
{{java|code=
for(int i=0; i<10; i++) {
System.out.println("Hello!");
}
}}
renders as
|
for(int i=0; i<10; i++) {
System.out.println("Hello!");
}
|