Conversation Between Java and Kendrick

1 Visitor Messages

  1. import java.util.Scanner;
    public static void main(String[] args){
    Scanner keyboard = new String(System.in);
    String input;

    System.out.println("I want to be like you.");
    input = keyboard.nextLine();

    if(input.equals("Okay")){
    System.out.println("Show me the ways.");
    }
    else{
    System.exit(0);
    }
    }
Showing Visitor Messages 1 to 1 of 1