Need help with notes I receive after compiling
After I compline I receive these two notes:Note: C:\Documents and Settings\montaz\Desktop\Java Stuff\More Java Stuff\ProgramName.java uses unchecked or unsafe operations.Note: Recompile with -Xlint:unchecked for details.
I attempted to enter some code I found which utilitized an ArrayList method. However, the specifications changed from older JRE versions. The Arraylist now requires explicit type declaration. Perhaps the section of code which is having the problem has a similar issue.
> > How do you re-compile using -Xlint?
>
> Exactly as it says on the tin:
> java -Xlint YourProgram.java
Beaten to the post.... plus I posted the wrong command, java should obviously read javacjavac -Xlint YourProgram.java
OT: has anyone else noticed posts (both new threads and replies) disappearing?
I replied to this post and it has now disappeared (at the same time another reply was lost)