Sample java code