C:\Practice Test Code>javac Xy144.java
Note: Xy144.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
C:\Practice Test Code>javac -Xlint:unchecked Xy144.java
Xy144.java:15: warning: [unchecked] unchecked call to add(E) as a member of the
raw type ArrayList
ref.add("ABC ");
^
where E is a type-variable:
E extends Object declared in class ArrayList
Xy144.java:16: warning: [unchecked] unchecked call to add(E) as a member of the
raw type ArrayList
ref.add("DEF ");
^
where E is a type-variable:
E extends Object declared in class ArrayList
Xy144.java:17: warning: [unchecked] unchecked call to add(E) as a member of the
raw type ArrayList
ref.add("GHI");
^
where E is a type-variable:
E extends Object declared in class ArrayList
3 warnings
Raisin cookies that look like chocolate chip cookies are the main reason I have trust issues.
All things are lawful, but not all things are profitable.
Oracle certified JPA Developer (1Z0-898),Oracle certified Java 8 Programmer I (1Z0-808), Oracle Java Web Service Developer (1z0-897), Oracle certified Java 7 Programmer, SCJA 1.0, SCJP 5.0, SCWCD 5.0, Oracle SQL Fundamentals I, CIW Certified Ecommerce specialist
Raisin cookies that look like chocolate chip cookies are the main reason I have trust issues.
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime. |