Any help is greatly appreciated. Here is what I have so far.....

import java.util.*; public class BinaryConverter { static Scanner scan = new Scanner(System.in); public static void main(String[] args) { int binaryNum; int base; base = 10; System.out.print("Enter a binary number: "); binaryNum = scan.nextInt(); System.out.println(); System.out.print("Binary " + binaryNum + " = "); BinToDec(binaryNum, base); System.out.println(" decimal"); } public static void BinToDec(int num, int base) { if (num > 0) { BinToDec(num / base, base); System.out.print(num % base); } } }