質問編集履歴

2

確認方法を追記

2018/06/21 05:04

投稿

Wind
Wind

スコア442

test CHANGED
File without changes
test CHANGED
@@ -74,7 +74,19 @@
74
74
 
75
75
  MainActivity.clsDataFormat[] clsData = intent.get // ←ここが不明
76
76
 
77
- // clsDataを使った処理
77
+ // Debug:受け取り確認
78
+
79
+ for(MainActivity.clsDataFormat dat:clsData){
80
+
81
+ Log.i("debug","Num:" + dat.intNum);
82
+
83
+ Log.i("debug","Str:" + dat.strData);
84
+
85
+ for(int j=0;j<10;j++)
86
+
87
+ Log.i("debug","Arr " + j + ":" + dat.intArray[j]);
88
+
89
+ }
78
90
 
79
91
  }
80
92
 

1

省略した部分を追記

2018/06/21 05:04

投稿

Wind
Wind

スコア442

test CHANGED
File without changes
test CHANGED
@@ -30,7 +30,17 @@
30
30
 
31
31
  clsDataFormat[] clsData = new clsDataFormat[100];
32
32
 
33
- // clsDataに値を入れる処理は省略
33
+ for(int i=0;i<10;i++){
34
+
35
+ clsData[i].intNum = i+1;
36
+
37
+ clsData[i].strData = "Data:" + String.valueOf(i+1);
38
+
39
+ for(int j=0;j<10;j++)
40
+
41
+ clsData[i].intArray[j] = j;
42
+
43
+ }
34
44
 
35
45
 
36
46