package lt.bit.bitmap; public class Auto { private String mark; private String model; private String color; public Auto() { } public Auto(String mark, String model, String color) { this.mark = mark; this.model = model; this.color = color; } public String getMark() { return mark; } public void setMark(String mark) { this.mark = mark; } public String getModel() { return model; } public void setModel(String model) { this.model = model; } public String getColor() { return color; } public void setColor(String color) { this.color = color; } public String toString(){ return this.mark+" "+this.model+" "+this.color; } }