In Java, is it possible to print the type of a variable?
public static void printVariableType(Object theVariable){ //print the type of the variable that
You can use the ".getClass()" method.
".getClass()"
System.out.println(variable.getClass());