title: Unchecked operation warning
body: <p>What is causing this warning in my program>? I'm giving the inputs by command line. I'm getting this warning for all vector programs.</p>
  
  <pre><code>import java.util.*;
  class vect
  {
      public static void main(String args[])
      {
          Vector v=new Vector();
          int length=args.length;
          for(int i=0;i&lt;length;i++)
          {
              v.addElement(args[i]);
          }
          System.out.println("Objects in vector are :");
          for(int i=0;i&lt;length;i++)
          {
              System.out.println(v.elementAt(i));
          }
      }
  }
  </code></pre>
  
  <p>Compiler output:</p>
  
  <pre><code>C:\myJava&gt;javac vect.java
  Note: vect.java uses unchecked or unsafe operations.
  Note: Recompile with -Xlint:unchecked for details.`
  </code></pre>