All pastes #288088 Raw Edit

Stuff

public text v1 · immutable
#288088 ·published 2006-12-22 00:43 UTC
rendered paste body
private Class class;
private int size;
private File f = new File("recipes.txt");

...

 FileOutputStream fos1 = new FileOutputStream(f);
 ObjectOutputStream out = new ObjectOutputStream(fos1);

  for (int i = 0; i < size; i++) {
       class = new Class(name, textFields[i].getText(), textFields[i].getText());     
       out.writeObject(class.toString());  
  }