void (Object object) { if (object instanceof String && ((String) object).length() ==1) { String txt = (String) object; System.out.println(txt); } else { return; } String txt = (String) object; System.out.println(txt); }