+ 1
why i got this : Main.java uses unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details.
import java.util.Arrays; import java.util.LinkedList; class Main { public static void main(String[] args) { //System.out.println("Hello world!"); String [] stuff= { "babies", "watermelon", "melon", "fudge"}; LinkedList thelist = new LinkedList<String>(Arrays.asList(stuff)); System.out.println(thelist); thelist.addFirst("thefirst"); thelist.addLast("thelast"); System.out.println(thelist); } }
1 Answer
0
Hey Wally, all the errors of programming languages can be found in Stack Overflow and their website.
For example, from a brief google search of this error I found the next: https://stackoverflow.com/questions/197986/what-causes-javac-to-issue-the-uses-unchecked-or-unsafe-operations-warning