All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.github.javaf.HelloWorld Maven / Gradle / Ivy

There is a newer version: 1.1.11
Show newest version
package io.github.javaf;
import java.io.*;

/**
 * I have a question for you.
 */
public class HelloWorld {

  /**
   * Asks a question.
   * @param args command-line arguments
   * @throws IOException input
   */
  public static void main(String[] args) throws IOException {
    BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
    System.out.println("What clothing does a house wear?");
    String ans = in.readLine();
    if (ans.equalsIgnoreCase("address")) System.out.println("Got it!");
    else System.out.println("It's Address!");
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy