Beginning Java Tutorial: 7 Declaring Variables and Assigning Values

Опубликовано: 18 Март 2026
на канале: Bruce Lamb
68
4

Briefly Declare a variable and assign a value to the variable to be displayed to console.
To copy and paste code visit: www.carbon12.life/Tutorials/Beginner_Java/7_Variables.php
Declare variable type as "int". (0:15)

Name the variable "x". (0:40)

Assign the value 3 to variable x. (1:02)

Note that Red squiggly represents a problem or error with syntax. Sometimes hovering over will provide helpful hints when trouble shooting errors. (1:52)