Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Write A Java Program To Explain Annotation Concept
- //2. @SupperessWarnings
- import java.util.*;
- class Ex7 //Ex7 is FileName
- {
- //@SuppressWarnings("unchecked") //Comment @SupperessWarnings After Check
- public static void main(String args[])
- {
- ArrayList list = new ArrayList();
- list.add("Sonoo");
- list.add("Vimal");
- list.add("Ratan");
- for(Object obj:list)
- {
- System.out.println(obj);
- }
- }
- }
Add Comment
Please, Sign In to add comment