Question: How do I make my string look like this, instead of this with (String Builder)
What is Should Look Like:
"Assassin's Creed IV: Black Flag", released on: Nov 29, 2013
"Child of Light", released on: May 01, 2014
"Dragon Age: Inquisition", released on: Dec 18, 2014
I know some form of StringBuilder should be used however I have no idea how to format it. As my games are printing as:
What mine looks like:
["Assassin's Creed IV: Black Flag", released on: Nov 29, 2013 "Child of Light", released on: May 01, 2014 "Dragon Age: Inquisition", released on: Dec 18, 2014]
Below is my code snip-it where the dates are all appearing fine just they are not split over multiple lines
@Override
public String toString() {
DateFormat date = new SimpleDateFormat("MMM dd, yyyy");
return("\"" + game + "\"" + ", " + "released on: " + date.format(released.getTime()));
}