. This will show you what line you're using deprecated methods on. If you look your method up in the Java API, there'll be a note that said "Deprecated: such-and-such has been replaced by ..." (or something to that effect) that will tell you what method you should use instead.
javac -Xlint:deprecation ProgramName.java
will let you see what line it found these "unsafe operations" on.
javac -Xlint:unchecked MyProgram.java