class or interface expected?

private void occupy(String s) throws SAXException // <-- error in this line of coding{try {out.write(s);out.flush();} catch (IOException e) {throw new SAXException("I/O error", e);}}?
[277 byte] By [ReallyStupidJavaProgrammera] at [2007-11-27 0:27:02]
# 1
You can't just specify a method. It needs to be embedded within a class.
BillKriegera at 2007-7-11 22:26:16 > top of Java-index,Java Essentials,New To Java...