Ti bastava andare al sito della sun e cercare nelle API la classe FileWriter (o direttamente qui nel forum), comunque per esempio:
codice:
import java.io.*;
/**
*
* @author Andrea
*/
public class FileWriterTest {
public static void main (String[] args) {
String PATH_TO_DESK = "C:/Documents and Settings/Andrea/Desktop";
String FILE_NAME = "FileWriterTest.txt";
String[][] DUMP = {
{"Nome","Cognome","Tipo","Creatore"},
{"Donald","Duck","Duck","Walt Disney"},
{"Bugs","Bunny","Rabbit","Warner Bros"}
};
try {
FileWriter fw = new FileWriter(PATH_TO_DESK+"/"+FILE_NAME);
for (int i = 0; i < DUMP.length; i++) {
for (int j = 0; j < DUMP[i].length; j++) {
fw.write(DUMP[i][j]+";");
}
fw.write("\n");
}
fw.flush();
fw.close();
}
catch (Exception e) {
e.printStackTrace();
}
}
}
Ovviamente saprai tu come stai ottenendo DUMP