binary conversion java code added