*

From Esolang
Jump to: navigation, search

Use Asterisks * to do everything.

  • * prints "Hello World"
  • * computes every mathematical equations possible
  • * + * could keep running till there isn't enough memory

Java Interpreter

import java.util.Scanner;

public class Asterisk {

	public static void main(String[] args) {

		Scanner in = new Scanner (System.in);
		System.out.println();
		String ast = in.nextLine();
		
		if (ast.equals("*")) System.out.println("Hello World");
		else if (ast.equals(" * ")) System.out.println((Math.random() * (Integer.MAX_VALUE)));
		else if (ast.equals("*+*")) recur();
	}
	public static void recur () {recur();}
}