public static void convert(int number, int base) {

           if(number%base<0&&(number/base==0||number/base==1)){
               System.out.print("-");
           }
           if(number!=0){
               convert(number / base, base);
               System.out.print(Math.abs(number % base));

            }

        }