I am trying to compile below code. It is throwing following exception. Could you please help identify what the problem is?
Compilation Error:
============
E9.java:20: error: cannot find symbol
Field field = x.getClass.getDeclaredField(fieldName);
...................^
symbol: variable getClass
location: variable x of type T
where T is a type-variable:
T extends Object declared in method <T>lexographicComparator(String...)
1 error