I have code as below
private Vector<Vector<Object>> barCode;
private boolean isBarCode(String temp) {
for (Vector<Object> link : barCode) {
if (link.get(0).toString().equals(temp)) {
return true;
}
}
return false;
}
I am getting below error.
Caused by: java.lang.ClassCastException: java.util.ArrayList incompatible with java.util.Vector
at the for loop line.
Any input please?