import java.util.*;
publicclass UncheckedExample {
publicvoid processIntVector(Vector<Integer> v)
{
// perform some processing on the vector
}
publicstaticvoid main(String args[])
{
Vector<Integer> intVector = new Vector<Integer>();
Vector oldVector = new Vector();
UncheckedExample ue = new UncheckedExample();
// This is permitted
oldVector = intVector;
// This causes an unchecked warning
intVector = oldVector;
// This is permitted
ue.processIntVector(intVector);
// This causes an unchecked warning
ue.processIntVector(oldVector);
}
}