I have the following method and I need to return two strings:
- value of type.getName()
- value of field.getName()
What is the best way to do it?
public static void getClassMetaData(List<Object> listClsObj) {
....
for (Field field : declaredFields) {
Class<?> type = field.getType();
System.out.println(type.getName());
System.out.println(field.getName());
}
}