init
This commit is contained in:
17
Question18-StringOperation/src/PTra18_01.java
Normal file
17
Question18-StringOperation/src/PTra18_01.java
Normal 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 が同じ文字列だった場合、同じ文字です と表示
|
||||
*/
|
||||
|
||||
}
|
||||
}
|
||||
25
Question18-StringOperation/src/PTra18_02.java
Normal file
25
Question18-StringOperation/src/PTra18_02.java
Normal 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);
|
||||
}
|
||||
}
|
||||
16
Question18-StringOperation/src/PTra18_03.java
Normal file
16
Question18-StringOperation/src/PTra18_03.java
Normal 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 配列の中の文字列を全て出力して下さい
|
||||
|
||||
}
|
||||
}
|
||||
5
Question18-StringOperation/src/common/Print.java
Normal file
5
Question18-StringOperation/src/common/Print.java
Normal file
@@ -0,0 +1,5 @@
|
||||
package common;
|
||||
|
||||
public class Print {
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user