So I am having troubles printing to output. I understand the concept, but when it comes to this problem its kinda weird. I\'ve tried different print lines and all of them give m
try do in this way
public void text() { try { PrintWriter output = new PrintWriter("test.txt"); for (int i = 0; i < data.length; i++) { if(i > 0){ output.print(","); } output.print(data[i]); output.flush(); } } catch (Exception ex) { } }