So the method is called:
private void print()
{
System.out.println("The list of Devices is:");
for(int i = 0; i < numDevices; i++)
{
System.out.println(list[i].toString());
}
}
When it gets to toString method it brings it here
public String toString()
{
String temp = name + ": " + readings[0];
return temp;
}
My issue is when I call on the method print its supposed to out put all data values inside of readings instead I can only return one data value. Any help would be appreciated and if more information is needed let me know as this is two of 3 files.
My output:
The list of Devices is:
Speedometer: 3
Alitimeter: 1
there output is
The list of Devices is:
Speedometer: 3,39.7,93.2,193.2,0.0,0.0
Altimeter: 1,422.6,98.7,340.5