public static void main(String[] args) {

//		Field[] fields = CompanyA.class.getDeclaredFields();
//		for (Field f : fields) {
//			Class t = f.getType();
//			System.out.println("field name : " + f.getName() + " , type : " + t);
//		}
//		
		List<String> list = getFieldNameWithListDataType();
        for(String data : list){
            System.out.println("List : " + data);
        }
        System.out.println(list.lastIndexOf(list));
	}