void (List<GenericString<? extends String>> list) { for (GenericString<? extends String> genericString : list) { System.out.println(genericString.t); String t = genericString.t; System.out.println(genericString.text); } }