質問編集履歴
1
コードの一部を追記
title
CHANGED
File without changes
|
body
CHANGED
@@ -7,4 +7,16 @@
|
|
7
7
|
|
8
8
|
もっと便利な構文があるのだと思いますが、思いつきませんでした。
|
9
9
|
勉強不足感は否めませんが、どうか知恵をお貸しください。
|
10
|
-
よろしくお願いします。
|
10
|
+
よろしくお願いします。
|
11
|
+
|
12
|
+
```
|
13
|
+
Properties properties=new Properties();
|
14
|
+
~
|
15
|
+
Scanner scanner=new Scanner(System.in);
|
16
|
+
String create_character_type=scanner.nextLine();
|
17
|
+
~
|
18
|
+
if(create_character_type.equals("戦士")){
|
19
|
+
jobs.Senshi create_character_instance=new jobs.Senshi();
|
20
|
+
properties.setProperty("type",create_character_instance.type);
|
21
|
+
~
|
22
|
+
```
|