class Test { public void foo(Object anObject) { bar(anObject.toString()); } void bar(String f){} }