void (Object object) { if (object instanceof String) { String txt = (String) object; System.out.println(txt); } else if (!(object instanceof Number)) { } else { Number n = (Number) object; System.out.println(n); } }