how to create a temporary file

Is there a recommended way of creating temporary files?

If so can you please give me an example?

Thanks,

Bernd

PS: I mean the naming of the tmp file... how should I name a temp file?

Just use java.io.File.createTempFile(...).