1030自主学習

This commit is contained in:
2026-10-30 17:49:49 +09:00
parent d9529e2971
commit c0101fc96d
186 changed files with 2507 additions and 0 deletions

View File

@@ -0,0 +1,9 @@
public class Question9_1 {
public static void main(String[] args) {
// TODO 自動生成されたメソッド・スタブ
Util.hello();
}
}

View File

@@ -0,0 +1,9 @@
public class Question9_2 {
public static void main(String[] args) {
// TODO 自動生成されたメソッド・スタブ
common.Util.showSum(1, 2);
}
}

View File

@@ -0,0 +1,9 @@
import common.Util;
public class Question9_3 {
public static void main(String[] args) {
// TODO 自動生成されたメソッド・スタブ
Util.showSum(1, 2);
}
}

View File

@@ -0,0 +1,6 @@
public class Util {
public static void hello() {
System.out.println("こんにちは");
}
}

View File

@@ -0,0 +1,7 @@
package common;
public class Util {
public static void showSum(int num1, int num2) {
System.out.println(num1 + num2);
}
}