- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathVariable.java
More file actions
Latest commit
31 lines (22 loc) · 630 Bytes
/
Copy pathVariable.java
File metadata and controls
31 lines (22 loc) · 630 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
publicclassVariable {
publicstaticvoidmain(String[] args) {
Stringname;
name = "Rio Griya Putra";
intage;
age = 21;
Stringaddress = "Indonesia";
System.out.println(name);
System.out.println(age);
System.out.println(address);
name = "Eluardo Pucuk";
System.out.println(name);
// Using Variable
// Var must declare with value
varfirstName = "Pucuk";
varmiddleName = "Never";
varlastName = "Die";
// Value can't be Changed or Manipulate if using FINAL
finalStringapplication = "Belajar Java";
System.out.println(application);
}
}