Converting String of binary digits to decimal number… using recursion
问题 Comp sci professor gave us this problem in our homework... I'm not sure how to proceed and the code I have written seems to be failing miserably. Here is the prompt: (binary to decimal) Write a recursive method that parses a binary number as a string into a decimal integer. The method header is: public static String bin2Dec(String binaryString) write a test program that prompts the user to enter a binary string and displays its decimal equivalent. Any help greatly appreciated. Here is my code