Print a word · Вывести слово
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.
Выведите слово
Добро пожаловать в трек Java! В Java всегда есть несколько строк настройки вокруг вашего кода. Пока что изменяйте только слова внутри кавычек — остальное оставьте как есть.
System.out.println("cat") показывает cat.
Строки вокруг вашего кода — public class Main и public static void main — должны оставаться точно такими же. Если пропущена кавычка " или ;, Java не запустит программу. Она выведет ошибку, например, ';' expected с номером строки, а карточка под ней объяснит, что нужно исправить. Первый запуск может занять несколько секунд.
Change the text so it prints hello. · Измените текст так, чтобы он печатал hello.
Click Run to see the output here. · Нажмите Запустить, чтобы увидеть результат здесь.