JAVA · ОСНОВЫ · LESSON 02
A number with a name
int and addition · about 12 minutes
Learning with progressRead the summary for free. To save the work, log in to the account.
Type the code yourself
Type the program manually. Compare the sign = and the sign +.
public class Main {
public static void main(String[] args) {
int stars = 2 + 4;
System.out.println(stars);
}
}Open the editor for class workSolve it yourself
Inside main, create an integer a as the sum of 1 and 1. Deduce the value of a.
The answer is hidden. Use similar examples from the lesson notes.
Opening up your homework