We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cca23c2 commit 47b6725Copy full SHA for 47b6725
src/com/codefortomorrow/beginner/chapter2/solutions/ApplesOranges.java
@@ -17,12 +17,12 @@ public static void main(String[] args) {
17
// define an integer variable called numApples with value 24 (line 18)
18
int numApples = 24;
19
20
- // print out number of oranges, output: "I have 10 oranges." (line 21)
+ // print out number of oranges using variables, output: "I have 10 oranges." (line 21)
21
System.out.println("I have " + numOranges + " oranges.");
22
23
// print out number of apples, output: "I have 24 apples." (line 24)
24
System.out.println("I have " + numApples + " apples.");
25
26
}
27
28
-
+
0 commit comments