q1-7まで完了
This commit is contained in:
6
Question01-StartProgram/.classpath
Normal file
6
Question01-StartProgram/.classpath
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<classpath>
|
||||||
|
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
|
||||||
|
<classpathentry kind="src" path="src"/>
|
||||||
|
<classpathentry kind="output" path="bin"/>
|
||||||
|
</classpath>
|
||||||
1
Question01-StartProgram/.gitignore
vendored
Normal file
1
Question01-StartProgram/.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
/bin/
|
||||||
17
Question01-StartProgram/.project
Normal file
17
Question01-StartProgram/.project
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<projectDescription>
|
||||||
|
<name>Question01-StartProgram</name>
|
||||||
|
<comment></comment>
|
||||||
|
<projects>
|
||||||
|
</projects>
|
||||||
|
<buildSpec>
|
||||||
|
<buildCommand>
|
||||||
|
<name>org.eclipse.jdt.core.javabuilder</name>
|
||||||
|
<arguments>
|
||||||
|
</arguments>
|
||||||
|
</buildCommand>
|
||||||
|
</buildSpec>
|
||||||
|
<natures>
|
||||||
|
<nature>org.eclipse.jdt.core.javanature</nature>
|
||||||
|
</natures>
|
||||||
|
</projectDescription>
|
||||||
@@ -6,6 +6,7 @@
|
|||||||
*/
|
*/
|
||||||
public class PTra01_01 {
|
public class PTra01_01 {
|
||||||
public static void main(String[] args) {
|
public static void main(String[] args) {
|
||||||
|
System.out.println("Hello,world");
|
||||||
|
|
||||||
//TODO Hello,world と出力してください
|
//TODO Hello,world と出力してください
|
||||||
|
|
||||||
|
|||||||
@@ -8,12 +8,12 @@ public class PTra01_02 {
|
|||||||
public static void main(String[] args) {
|
public static void main(String[] args) {
|
||||||
|
|
||||||
// TODO 11行目のコメントを単一行コメントにしてコンパイルエラーが出ないようにしてください
|
// TODO 11行目のコメントを単一行コメントにしてコンパイルエラーが出ないようにしてください
|
||||||
ここをコメントアウトする
|
//ここをコメントアウトする
|
||||||
|
|
||||||
// TODO 14行目 ~ 16行目を複数行コメントにしてコンパイルエラーが出ないようにしてください
|
// TODO 14行目 ~ 16行目を複数行コメントにしてコンパイルエラーが出ないようにしてください
|
||||||
ここをコメントアウトする
|
//ここをコメントアウトする
|
||||||
ここをコメントアウトする
|
//ここをコメントアウトする
|
||||||
ここをコメントアウトする
|
//ここをコメントアウトする
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -6,11 +6,11 @@
|
|||||||
*/
|
*/
|
||||||
public class PTra01_03 {
|
public class PTra01_03 {
|
||||||
public static void main(String[] args) {
|
public static void main(String[] args) {
|
||||||
|
String string;
|
||||||
// TODO 文字列型の変数 str を宣言してください。
|
// TODO 文字列型の変数 str を宣言してください。
|
||||||
|
String str = "こんにちは";
|
||||||
// TODO str に こんにちは を代入してください
|
// TODO str に こんにちは を代入してください
|
||||||
|
System.out.println(str);
|
||||||
// TODO str の値を出力してください
|
// TODO str の値を出力してください
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -6,9 +6,9 @@
|
|||||||
*/
|
*/
|
||||||
public class PTra01_04 {
|
public class PTra01_04 {
|
||||||
public static void main(String[] args) {
|
public static void main(String[] args) {
|
||||||
|
int number = 10;
|
||||||
// TODO 数値型の変数 number を 10 で初期化してください。
|
// TODO 数値型の変数 number を 10 で初期化してください。
|
||||||
|
System.out.println(number);
|
||||||
// TODO number の値を出力してください
|
// TODO number の値を出力してください
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -6,9 +6,9 @@
|
|||||||
*/
|
*/
|
||||||
public class PTra01_05 {
|
public class PTra01_05 {
|
||||||
public static void main(String[] args) {
|
public static void main(String[] args) {
|
||||||
|
char ch = 'A';
|
||||||
// TODO char型の変数 ch を A で初期化してください。
|
// TODO char型の変数 ch を A で初期化してください。
|
||||||
|
System.out.println(ch);
|
||||||
// TODO ch の値を出力してください
|
// TODO ch の値を出力してください
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -7,8 +7,9 @@
|
|||||||
public class PTra01_06 {
|
public class PTra01_06 {
|
||||||
public static void main(String[] args) {
|
public static void main(String[] args) {
|
||||||
|
|
||||||
|
boolean bo = true;
|
||||||
// TODO boolean型の変数 bo を true で初期化してください。
|
// TODO boolean型の変数 bo を true で初期化してください。
|
||||||
|
System.out.println(bo);
|
||||||
// TODO bo の値を出力してください
|
// TODO bo の値を出力してください
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -6,9 +6,9 @@
|
|||||||
*/
|
*/
|
||||||
public class PTra01_07 {
|
public class PTra01_07 {
|
||||||
public static void main(String[] args) {
|
public static void main(String[] args) {
|
||||||
|
long lo = 1000000000000L;
|
||||||
// TODO long型の変数 lo を 1000000000000 で初期化してください。
|
// TODO long型の変数 lo を 1000000000000 で初期化してください。
|
||||||
|
System.out.println(lo);
|
||||||
// TODO lo の値を出力してください
|
// TODO lo の値を出力してください
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user