/** * Demonstrates recursive strategy to convert a decimal (base 10) number to a * different base. * * @author C. D'Arcy */ public class Convert { private static int number = 6; private static int base = 2; public static void main(String args[]) { System.out.printf("%d(10) = %s(%d).\n", number, convert(number), base); } /** * Implements a recursive approach to base conversion * * @param num * the number to convert * @return the converted number */ private static String convert(int num) { } }