This commit is contained in:
m-mun
2026-09-09 08:34:32 +09:00
parent 8e67b4ccb9
commit 1b863df929
181 changed files with 34869 additions and 0 deletions

View File

@@ -0,0 +1,28 @@
/*
* PTra08_08.java
* 作成 Rhizome
*------------------------------------------------------------
* Copyright(c) Rhizome Inc. All Rights Reserved.
*/
public class PTra08_08 {
public static void main(String[] args) {
System.out.println(sum(1, 2));
System.out.println(sum(1, 2 ,3));
System.out.println(sum(1, 2, 3, 4));
}
/*
* TODO 以下の仕様でメソッドを作成してください
*
* 戻り値 :int
* メソッド名 :sum
* 引数 :int num1, int num2
*
* 引数で渡された値合計した値を戻り値として返す
*/
//TODO sumを引数3つでオーバーロードしてください。処理は同じ
//TODO sumを引数4つでオーバーロードしてください。処理は同じ
}