I need to be able to store the values of these variables in one new array element (located in another different), which im planning to repeat for as long as the user requires. From what I understand you can create an array of custom type which does exactly that. Is that correct? (For example, an array of type RecordTV?)
Code:
public class RecordTV {
float serial;
float size;
float coordinates;
String brand;
protected RecordTV (float tvserial, float tvsize,
float tvcoordinates, String tvbrand) {
settvserial(serial);
settvsize(size);
settvcoordinates(coordinates);
settvbrand(brand);
}
public void settvserial(float serial) {
this.serial = serial;
}
public void settvsize(float size) {
this.size = size;
}
public void settvcoordinates(float coordinates) {
this.coordinate = coordinates;
}
public void settvbrand(String brand) {
this.brand = brand;
}
}

