Note: HW4c.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
so when I compile with -Xlint the program runs fine but there are like 10 warnings.
...
Type: Posts; User: yacek
Note: HW4c.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
so when I compile with -Xlint the program runs fine but there are like 10 warnings.
...
This is the line of code generating the "unchecked or unsafe operations" error. There is an arrow that points to "new". How do I get rid of this error so I can compile my code?
public static...
THANK YOU! I was using vector methods *facepalm*
I can't figure it out, here's a totally simplified example I tried to compile. Same error occurs at the line where I have String s = mbin.elementAt(i);
It's says "cannot find symbol", there are...
@Javapenguin You can have an array of ArrayLists. Tried adding the string generics to it but that doesn't change anything.
Where am I using arraylist like an array? Also, the error is only occurring in my methods.
Working on a bin sort; user enters a bunch of number and then I sort them.
I keep getting the error "cannot find symbol" and an arrow pointing to the period in mbin.elementAt(i) and ever time I...