hi
i want to convert string binary number to octal.how can i do it?. without using predefined methods in java
help me

thanks

Take 3 characters at a time (from the right hand end) and convert them to one octal digit. (You could use if tests, a switch, or index an array).

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.