From: Raymond Schanks on
I often see java source code snippets on web pages/tutorials.
Unfortunately the are shown WITHOUT the necessary "import" statements at the top.

Is there a tool which inspects such a java source and (depending on the java version)
suggests the required "import" statement?

Sometimes the java sample code is java 1.4 related and some used functions are deprecated.
I would appreciate if this tool could suggest newer source code replacements for e.g. java 1.6.

Ray