Will the following add obj to words (edit: assuming obj is the right type AND the statement returns a boolean value):
if(words.add(obj)){ System.out.print("success!"); }
Aucun commentaire:
Enregistrer un commentaire