Assignemnt #30 and Compare.java

Code

    /// Name: Boris Kazantsev
    /// Period: 6
    /// Program Name: Compare
    /// File Name: Compare.java
    /// Date Finished: 10/22/2015
    
    
    import java.util.Scanner;
    
    public class Compare{
        public static void main(String[] args){
            Scanner keyboard = new Scanner(System.in);
            
            String word;
            boolean ye, nah;
            
            System.out.println("Type \"yo\"");
            word = keyboard.next();
            
            ye = word.equals("yo");
            nah = !word.equals("yo");
            
            System.out.println("You typed what was requested: " + ye);
            System.out.println("You are not worthy: " + nah);
        }
    }
    
    

Picture of the output

Assignment 30