Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- else if(read.equals("Observation")){
- System.out.println("What was observed:? ");
- String observings = reader.nextLine();
- for(Birdz birdie : birdL){
- if(!(observings.equals(birdie.getName()))){
- //Should only execute when the above strings are not equal
- //however this statement executes everytime, once if strings are equal;
- //twice if strings are not equal
- System.out.println("Is not a bird! ");
- }else{
- birdie.setObservation
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement