I\'m creating a small program that saves a int value into a text file, saves it, and loads it when you start the program again. Now, I need 3 more booleans to be stored in t
No problem here:
System.out.format ("first: %s%s", "" + x + "\n", "" + y + "\n");
While I would prefere, to integrate the \n into the format String, not the values:
System.out.format ("second: %s\n%s\n", x, y);
Using Formatter.format works the same.