データを .CSV ファイルに整理しようとしています。データを特定の行に配置したいので、「\n」を入力しようとしましたが、機能しません。特定の行にデータを配置するのを手伝ってください。ありがとうございます前進..
public void writeData(String data,String strFilePath)
        {
            PrintWriter csvWriter;
            try
            {
                File file = new File(strFilePath);
                if(!file.exists()){
                    file = new File(strFilePath);
                }
                csvWriter = new  PrintWriter(new FileWriter(file,true));
                csvWriter.print(data+","+"hello");
                csvWriter.append('\n');
                csvWriter.print("world");
                csvWriter.close();
            }
            catch (Exception e)
            {
                e.printStackTrace();
            }
        }