Java and C++ classes to convert base 10 numbers to an from base 2 through base 64 numbers