new java code