Off Topic Fun
<< Heart Beats Per Lifetime | OtherProjectsTrailIndex | GraphicUserInterface >>
Can you read LOL Code?
HAI CAN HAS STDIO? VISIBLE "HAI WORLD!" KTHXBYE
Translation:
System.out.println("Hello World");
Try this one:
HAI CAN HAS STDIO? I HAS A VAR GIMMEH VAR IZ VAR BIGGER THAN 10? YARLY BTW this is true VISIBLE "BIG NUMBER!" NOWAI BTW this is false VISIBLE "LITTLE NUMBER!" KTHX KTHXBYE
Translation:
import java.util.Scanner;
public class LOL
{
public static void main(String[] args)
{
Scanner kb=new Scanner(System.in);
int var;
System.out.println("Give me a number:");
var = Integer.parseInt(kb.nextLine());
if (var>10){
//this is true
System.out.println("Big Number!");
} else {
//this is false
System.out.println("Little Number!");
}
}
}
