Advertisement
Guest User

Untitled

a guest
Dec 8th, 2016
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.64 KB | None | 0 0
  1. else if(read.equals("Observation")){
  2.             System.out.println("What was observed:? ");
  3.             String observings = reader.nextLine();
  4.                 for(Birdz birdie : birdL){
  5.                     if(!(observings.equals(birdie.getName()))){
  6.                         //Should only execute when the above strings are not equal
  7.                         //however  this statement executes everytime, once if strings are equal;
  8.                         //twice if strings are not equal
  9.                         System.out.println("Is not a bird! ");
  10.                     }else{                        
  11.                         birdie.setObservation
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement