convert base 10 to any base java
int input= 220;
int outputBase= 2;
int output=Integer.toString(input, outputBase);//output= base 2 of 220(10) = 11011100
//or
static String convertDecToAny(int outputBase, int intput){
String result="";
while(output!=0){
int value= intput%outputBase;
intput/=outputBase;
if(value<=9)
result= Integer.toString(value)+result;
else
result= Character.toString((char)(value+55))+result;//ASCII
}
return result;