- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathIntegerVariables.java
More file actions
Latest commit
22 lines (19 loc) · 731 Bytes
/
Copy pathIntegerVariables.java
File metadata and controls
22 lines (19 loc) · 731 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
//IntegerVariables.java
publicclassIntegerVariables
{
publicstaticvoidmain(String[] args)
{
intchecking; // Declare an int variable named checking.
bytemiles; // Declare a byte variable named miles.
shortminutes; // Declare a short variable named minutes
longdays; // Declare a long variable named days.
checking = -20;
miles = 105;
minutes = 120;
days = 189000;
System.out.println("We have made a journey of " + miles + " miles.");
System.out.println("It took us " + minutes + " minutes.");
System.out.println("Our account balanace is $" + checking);
System.out.println("About " + days + " days ago Columbus " + "stood on this spot.");
}
}