Page 1 of 1

Hello World!

Posted: Sun Jan 29, 2017 11:41 pm
by coltonj96
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

Re: Hello World!

Posted: Mon Jan 30, 2017 2:24 am
by doe
What you been smoking man?

Re: Hello World!

Posted: Mon Jan 30, 2017 3:00 am
by coltonj96
doe wrote:What you been smoking man?
Mostly the pollution I produce in Factorio... Probably not a good idea though...

Re: Hello World!

Posted: Mon Jan 30, 2017 8:38 pm
by hansinator
It is monday evening and we all have nothing better to do than hanging around in the Factorio forum I guess!

Re: Hello World!

Posted: Wed Mar 15, 2017 5:52 am
by MrNardKing
1: Don't use Minecraft avatars on a Factorio forum.
2: I don't have any questions.

Re: Hello World!

Posted: Tue Mar 21, 2017 5:35 pm
by GoldenPorkchop80
Well, if you're a modder, then tell what i wrote this in:
(Hint: It's not Java ;) )

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!");
    }
  }
}
    
Oh and if you're wondering if this really does work, try running it in a compiler that supports the Scanner Class.

Re: Hello World!

Posted: Tue Mar 21, 2017 7:54 pm
by MINIMAN10000
Hello I'm miniman and I'm not fond of not allowing my first post to contain URLs ):

Re: Hello World!

Posted: Fri Mar 24, 2017 12:35 am
by Dustine
Same, same, but how else do we prove to be human?