void (Object obj) { <caret>if (obj instanceof String) { String s = (String) obj; s = s.repeat(2); System.out.println(s); System.out.println((String) obj); } else if (obj instanceof Integer) { Integer i = (Integer) obj; System.out.println(i*2); } else { System.out.println(); } }