Java – Ugly code

Here’s some (intentionally) really ugly code.

The dollar.

 


static
class $ {

 


static $ $ = new $();

 

$() {

}

 


void $_() {

}

 

$ _$() {


return
new $();

}

 

$ _$_($ $$) {


return
$$;

}

}

The pound.

 


static
class £ extends $ {

 


static £ £ = new £();

 

£() {

}

 


void £_() {

}

 

£ _£() {


return
new £();

}

 

$ _£_(£ ££) {


return
££;

}

}

That doesn’t do a whole lot.

 

$ $$;


$$ = $.$;


$$ = $$._$();


$$._$_($$);

£ ££;


££ = £.£;


££ = ££._£();


££._$_(££);


$$ = ££;