I want to implement the following function:
public boolean checkType(Vector> vec) { // return true if its Vector and false otherwise
public boolean checkType(Vector> vec) { if(!vec.isEmpty()) { if("String".equals(vec.get(0).getClass().getSimpleName())) return false; else if("Integer".equals(vec.get(0).getClass().getSimpleName())) return true; } }
Hope this helps!!