Can anyone help me with this code please. Ive answered theentire code except 2 questions: public MyInteger(int decimal, intb) { and the last questionpublic MyInteger getValueInBase(int b) {return new MyInteger(“0”, b); //to be completed
HERE CODE:
import java.util.Arrays;
public class MyInteger {
private int base;
private int[] data;
/**
* DO NOT MODIFY
*/
public MyInteger() {
}
public int getBase() {
return base;
}
/**
* DO NOT MODIFY
* @return a DEEP copy of data
*/
public int[] getData() {
int[] result = newint[data.length];
for(int i=0; i < data.length;i++)
result[i] =data[i];
return result;
}
/**
PayPal Gateway not configured
PayPal Gateway not configured