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
System.out.println(theVariable.getClass());
Read the javadoc.