KaiquanMah commited on
Commit
bc8f85a
·
verified ·
1 Parent(s): 6f04d37

int double char String

Browse files
Week 2: Methods, strings and lists/5b. Match return values to methods ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ public static int calculate()
2
+ 1, -11, 25
3
+
4
+
5
+ public static double sum()
6
+ 0.01, 24.0, 1.0, -1.0
7
+
8
+
9
+
10
+
11
+ public static char third()
12
+ 'a' -> char uses single quotes
13
+
14
+
15
+
16
+ public static String print()
17
+ "a", "2" -> String uses double quotes
18
+
19
+