Hello World!
Posted: Sun Jan 29, 2017 11:41 pm
My name is Colton. I love modding Factorio, it's much fun! I don't really have a lot to write here so any questions will be answered in comments
Mostly the pollution I produce in Factorio... Probably not a good idea though...doe wrote:What you been smoking man?
Code: Select all
import java.io.*;
import java.util.*;
import java.util.Scanner;
public class helloWorld {
public static void main(String args[]) {
Scanner input = new Scanner(System.in);
System.out.print("Do you think that factorio is a good game? Y/N?: ");
String ans = input.next();
if (ans.equals("y") || ans.equals("Y")) {
System.out.format("\u0048\u0065\u006C\u006C\u006F\u0020\u0057\u006F\u0072\u006C\u0064\u0020\u0026\u0020\u0046\u0061\u0063\u0074\u006F\u0072\u0069\u006F\u0021");
} else if (ans.equals("n") || ans.equals("N")) {
System.out.println("You should see a doctor. Right now.");
} else {
System.out.println("I_AM_ERROR: CANNOT_COMPUTE_INPUT");
System.out.println();
System.out.println();
System.out.println("Pssst! Use \"Y\" for yes and \"N\" for no! It's simple programmer speak!");
}
}
}