2nd challenge

class VariableBaseValue{
 // フィールド //
 private static int base = 10;
 private int value = 2;
 
 public VariableBaseValue()    { }
 public VariableBaseValue(int base)   { this.base = base;}
 public VariableBaseValue(int base, int value)  { this(base); this.value = value;}

 void setBase(int b) { if (base > 10) b = 10; if (base < 2) b = 2; b = base;}
 void setValue(int value) {if (value < 1) value = 1; this.value = value;}
 int getBase() { return base; }
 int getValue() { return value;}

 public static String toString(int b,int value) {
 int v = value;
 String s = "";
 do{
 s = (v % b) + s;
 v /= b;
 }while (v > 0);
 return s;
 }
}
class VarBaseValTester{
 public static void main (String args){
 VariableBaseValue
varBaseVals = new VariableBaseValue [3];
 
}
}