#java coding for binary to octal