I do a database search, assemble the columns and export a txt
But in the column ("aaun_md_area) that is a number, instead of a comma, a dot is being applied, making it difficult to count in excel.
The column that is decimal that I need to change, is the "aaun_md_area" column
How to export using a comma?
File arquivo = new File(path);
try (FileWriter fw = new FileWriter(arquivo))
{ fw.append("Witdh");
fw.append("Area");
}
for (int i = 0;i<listaRt.length; i++){
rts.add(listaRt[i]);
ResultSet resultSigiop = stSigiop.executeQuery(sqlSigiop.replace(":1",
rts.toString().replace("[", "").replace("]", "")));
while(resultSigiop.next())
{
fw.append(resultSigiop.getString("ssrt_cd_status_subitem_rt"));
fw.append('\t');
fw.append(resultSigiop.getString("aaun_md_area"));
fw.append('\n');
}
fw.flush();
} catch(IOException ex){
throw ex;
}
rts = new ArrayList<String>();
}
fw.close();
}
catch(IOException ex){
throw ex;
}
}