Java written program for practices with converting bases.