Add: use System.getProperty("line.separator") instead of \n