3. Watch the story, built from zero
Story modeStory mode
20 scenes · about 4 min · narrated- just created
- being read or changed
- blank not filled in yet
In real life
A student ID card. Each blank takes a different kind of value.
In the computer's memory
Variables
On the screen
Nothing printed yet
1public class Main {2public static void main(String[] args) {3String name = "Asha"; // text, in quotes4int age = 17; // whole number5double height = 1.62; // decimal number6boolean adult = age >= 18; // true or false7String full = name + " Kumar"; // + joins text8String typed = "25"; // text, not a number9int roll = Integer.parseInt(typed); // text to int10System.out.println(full);11System.out.println(roll + 1); // + adds numbers12}13}