基数 radix が指定できる Integer.toString(i, radix) くらい知っとけ。
https://docs.oracle.com/javase/jp/8/docs/api/java/lang/Integer.html#toString-int-int-