Java Print Class Type

System.out.println(foo.getClass().getName());
Helpful Herring