Skip to content

Commit d0ce563

Browse files
committed
added basic_Concepts\Variables.java
1 parent 82e7614 commit d0ce563

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

basic_Concepts/Variables.java

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
package basic_Concepts;
2+
3+
public class Variables {
4+
public static void main(String[] args) {
5+
6+
String name = "Mateo";
7+
int age = 15;
8+
double annualPay = 10212.23; // double is the same as floating point or decimal point
9+
10+
System.out.println(name);
11+
System.out.println(age);
12+
System.out.println(annualPay);
13+
14+
// output the variables
15+
16+
}
17+
18+
}

0 commit comments

Comments
 (0)