Bit of a newbie question, I have a program where the contents of a vector are printed out.
Problem is my toString method for the objects in it is quite long eg
public String toString() {
return "Name: " + name + " Room: " + room + " Subject: " + subject + " Time " + String.format(" %02d:%02d", getHours(), getMinutes());
}
I will be adding the date as well, I want to split this up so when each element is output the time and date will appear a line below the name, room, subject,etc. to make the whole thing look a bit more tidy.
thanks,
Paul