Code:
public String toString() { 

String stringOne;

stringOne = ("" + title + ";" + author + ";" + loanStatus + ";" + borrowerID + ";" + loanDate + ";" + dueDate);

return stringOne;
}
This method compiled fine for me so it should be all good at your end. Assuming I interpreted your question correctly