Saturday, February 24, 2007

Just For Fun

package carton;

public class Class {
public static void main(String[] args) {
long
a=0x89859e,
b=0x6c81ca,
x = 1000,
y=513,
z=(long)Math.pow(x*10,2),
w=51387901,
u=8,
t = b;
a = (
(
(
(a * x) + (y=108) + 405
) * z
) + (
w=10003301
) + 41384600
) * (
(u=10)-2
) + (
t = (
(
(
(b * x) + y
) * z
) + w
) * u
) - (b = t);
String n = "0" + a + b;
for(int i = 0; i < n.length()-1; i+=3) {
System.out.print(
(char)Integer.parseInt(n.substring(i,i+3).trim())
);
}
}

}

2 comments:

Anonymous said...

Hey, it doesn't compile ;-)

Class.java:34: illegal start of expression
for(int i = 0; i <>

Robert L. Murphy said...

Yeah, that is corrected now. The blog editor mangled it. The original post has been edited and now has code that will compile.