1 2 3 4 5 6 7
class Test { void method(Object x) { String s = null; s = (String) x; System.out.println(s.length()); } }