JAVA · ОСНОВЫ · LESSON 16
Your command.
Method without argument · about 14 minutes
Learning with progressRead the summary for free. To save the work, log in to the account.
Type the code yourself
Type an example manually. Check the signs and brackets.
public class Main {
public static void main(String[] args) {
wave();
}
static void wave() {
System.out.println("Привет!");
}
}Open the editor for class workSolve it yourself
Create static void cheer(), which outputs «Ура!». Call cheer from main.
The answer is hidden. Use similar examples from the lesson notes.
Opening up your homework