-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathFirst.java
More file actions
19 lines (14 loc) · 766 Bytes
/
Copy pathFirst.java
File metadata and controls
19 lines (14 loc) · 766 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/* Follow the instructions in the comments of this program */
public class First {
public static void main(String[] args) {
// On this line, declare (but do not initialize) a variable of type int named "number"
// On this line, initialize the variable "number" with a value of 10
// On this line, declare and initialize a variable of type String
// named "sentence" and with the value "This is a sentence."
// On this line, print out the variable "number"
// Make sure to compile the program and run it to make sure it works
// On this line, print out the variable "sentence"
// Make sure to compile the program and runit to make sure it works
System.out.println("Something");
}
}