I have a problem with displaying the elements of the ArrayList
in Java. While returning the ArrayList
when its called from the Views to BMIAnalyzier cl
The main mystery is that you have the Records
class extend ArrayList
. I have no idea why you are doing that, but in so, you are inheriting ArrayList
's toString()
method, which is what renders the []
, since the array is empty. You need to implement toString()
for the Records
class.
String toString() {
return subjectId + " " + height + " " + width + " " + bmianalyzier + " " + categories;
}