that statement is like the process that convert binary to octal
ex: 111 = 1 * 2^2 + 1 * 2^1 + 1*2^0
Type: Posts; User: Ryoshiro
that statement is like the process that convert binary to octal
ex: 111 = 1 * 2^2 + 1 * 2^1 + 1*2^0
lol sorry tho. It's so small.
if (conversionType.equalsIgnoreCase("octal")) {
for (j = 0; j < binaryNum.length(); j += 3) {
groupNum = binaryNum.substring(j,...
1446
here is after i fix it a little bit.
Oh it won't compile. It showed a message of error and terminate.
Let's say I have a string of number: 111101
I have to write a code that take first 3 numbers (which is 111) and convert it into octal. Then do the same thing for the next 3 (which is 101).
At the...
I'm sorry because i'm not got at writing.
The problem is that I get stuck where I left right there.
I want to take group 3 numbers and converts into numerical number (from binary to octal). But...
I'm writing a program that is used to convert binary input to octal and hexadecimal numbers. It is very basic program so I can only use loops, charAt, substrings, length.
Your program logic may...