When writing to a text file in java, how do I enter values ββin a new line
code snippet
while (rs.next()) { int sport = rs.getInt("sport"); String name = rs.getString("name"); out.write(sport + " : " + name);}
the text file fills the value value1 value2 value3 ... etc. I want it to fill
value1 value2 value3 .
source share