mardi 4 juin 2019

Calling a function inside the condition of an if statement

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