Write code in Java:
- Code must berecursive.
import java.util.*;
import java.lang.*;
import java.io.*;
class BinaryToDecimal {
// *More methods can be added*
public static int binaryToDecimal(String binaryString) {
// *Code goes here*
}
class DriverMain {
public static void main(String args[]) {
Scanner input = new Scanner(System.in);
System.out.print(BinaryToDecimal.binaryToDecimal(input.nextLine()));
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here