Print a word
This page needs a recent browser (with SharedArrayBuffer support). Please update Chrome, Edge, Firefox or Safari to the latest version.
Print a word
Welcome to the Java track! Java always has some setup lines around your code. For now, only change the words inside the quotes — leave the rest.
System.out.println("cat") shows cat.
The lines around your code — public class Main and public static void main — must stay exactly as they are. If a quote " or the ; goes missing, Java does not run the program. It shows an error such as ';' expected with a line number, and the card under it explains what to fix. The first Run can take a few seconds.
Difficulty 1/5 · 100 coins + a small bonus on first completion today
Change the text so it prints hello.
Click Run to see the output here.