My own java code