10/16自習
This commit is contained in:
@@ -7,9 +7,11 @@ public class Question08_04 {
|
||||
|
||||
public static void main(String[] args) {
|
||||
// TODO 自動生成されたメソッド・スタブ
|
||||
|
||||
int x = 1;
|
||||
int y =2;
|
||||
|
||||
int total;
|
||||
total = sum(1,2);
|
||||
total = sum(x,y);
|
||||
System.out.println(total);
|
||||
|
||||
}
|
||||
|
||||
17
Question08-Method/src/main/java/Question08_06.java
Normal file
17
Question08-Method/src/main/java/Question08_06.java
Normal file
@@ -0,0 +1,17 @@
|
||||
|
||||
public class Question08_06 {
|
||||
|
||||
public static int addArray(int x, int y) {
|
||||
return x,y;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public static void main(String[] args) {
|
||||
// TODO 自動生成されたメソッド・スタブ
|
||||
int x = 10;
|
||||
int y = 20;
|
||||
System.out.println();
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user