This can be used to loop over the array and print “yes ” or “no ” :
boolean[] newbirds = {false, true, true};
StringBuilder sb = new StringBuilder();
for(boolean bird : newbirds){
sb.append(bird? "yes " : "no ");
}
System.out.println(sb.toString());
solved java -change boolean to yes no