質問編集履歴

1

中略部分、一部記載

2018/05/16 03:51

投稿

chaso
chaso

スコア8

test CHANGED
File without changes
test CHANGED
@@ -6,7 +6,7 @@
6
6
 
7
7
  ArrayList<Example> exampleList = new ArrayList<>();
8
8
 
9
- ・・・途中の処理省略・・・
9
+ 略(ここで取得しているデータなどは問題なく取得できており、問題部分との関係はないため省略します)~
10
10
 
11
11
  exampleList.add(new Example(1, "tarou", true));//ここは通っているがその先でステップを止めても想定通りに入っていない。
12
12
 
@@ -14,7 +14,7 @@
14
14
 
15
15
 
16
16
 
17
- Example.javaは以下の通りです。(setter,getter、package、class名の記載は省略)
17
+ Example.javaは以下の通りです。
18
18
 
19
19
  ```Java
20
20
 
@@ -24,7 +24,55 @@
24
24
 
25
25
  boolean flg;
26
26
 
27
+ public int getNo() {
28
+
29
+ return no;
30
+
31
+ }
32
+
33
+ public void setNo(int no) {
34
+
35
+ this.no = no;
36
+
37
+ }
38
+
39
+ public int getName() {
40
+
41
+ return name;
42
+
43
+ }
44
+
45
+ public void setName(String name) {
46
+
47
+ this.name = name;
48
+
49
+ }
50
+
51
+ public boolean getFlg() {
52
+
53
+ return flg;
54
+
55
+ }
56
+
57
+ public void setFlg(boolean flg) {
58
+
59
+ this.flg = flg;
60
+
61
+ }
62
+
27
63
  ```
64
+
65
+
66
+
67
+ 想定では、ArrayList<Example> exampleListに
68
+
69
+ no:1
70
+
71
+ name:tarou
72
+
73
+ flg:true
74
+
75
+ が入る想定。
28
76
 
29
77
 
30
78