Commiting java code