Changing Bases

Write a class named BaseChange, that when executed takes two arguments: a base-10 positive integer and a positive integer base into which to convert the base-10 number, and then prints to the console the converted value. When writing the code for this class, implement your own algorithm to perform the base conversion, rather than relying on any pre-made methods to this end.

Sample run:

$ java BaseChange 1012 16
3F4