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,17 @@
/*
* PTra18_01.java
* 作成 Rhizome
*------------------------------------------------------------
* Copyright(c) Rhizome Inc. All Rights Reserved.
*/
public class PTra18_01 {
public static void main(String[] args) {
String a = "AAA";
String b = "AAA";
/* TODO 以下の条件分岐を作成してください
* 変数 a と b が同じ文字列だった場合、同じ文字です と表示
*/
}
}

View File

@@ -0,0 +1,25 @@
/*
* PTra18_02.java
* 作成 Rhizome
*------------------------------------------------------------
* Copyright(c) Rhizome Inc. All Rights Reserved.
*/
import common.Print;
/*
* このクラスの内容は変更しないでください。
*/
public class PTra18_02 {
public static void main(String[] args) {
Print print = new Print();
/*
* TODO
* commonパッケージのPrintクラスを変更して
* 実行すると
* "Printインスタンスを表示" という文字列
* が表示されるようにしてください。
*/
System.out.println(print);
}
}

View File

@@ -0,0 +1,16 @@
/*
* PTra18_03.java
* 作成 Rhizome
*------------------------------------------------------------
* Copyright(c) Rhizome Inc. All Rights Reserved.
*/
public class PTra18_03 {
public static void main(String[] args) {
String str = "りんご,みかん,いちご,ぶどう";
// TODO strクラスの文字をカンマで区切って配列に変換してください
// TODO 配列の中の文字列を全て出力して下さい
}
}

View File

@@ -0,0 +1,5 @@
package common;
public class Print {
}