Virajsinh

Java_07

Feb 7th, 2018
237
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.43 KB | None | 0 0
  1. //Write A Java Program To Explain Annotation Concept
  2. //2. @SupperessWarnings
  3.  
  4. import java.util.*;
  5.  
  6. class Ex7 //Ex7 is FileName
  7. {
  8.     //@SuppressWarnings("unchecked") //Comment @SupperessWarnings After Check
  9.    
  10.     public static void main(String args[])
  11.     {
  12.         ArrayList list =  new ArrayList();
  13.         list.add("Sonoo");
  14.         list.add("Vimal");
  15.         list.add("Ratan");
  16.        
  17.         for(Object obj:list)
  18.         {
  19.             System.out.println(obj);
  20.         }
  21.            
  22.     }
  23. }
Add Comment
Please, Sign In to add comment