Hello all, I am writing a toString() i know how to do the basics off this but what im looking to know is how to put a line break between each set of information to get this
public String toString()
{
return
"ball pos:" + this.ball +
"keeper pos:" + this.keeper + "Player:" + this.player;
}
to look like this
"============= A Goal==============
Ball position: (what ever is returned)
Keeper position : (What ever is returned)
Player : (What ever is returned)
At the moment im just getting them clumped together.