This is my homework question: "Create a method called roundAllUp(), which takes in an array of doubles and returns a new array of integers. This returned array contains all the numbers from the array of doubles, but rounded up."
Here is the method I have so far:
public static int[] roundUp(double[] array2){
for(int i = 0; i < array2.length; i++){
Math.ceil(array2[i]);
}
}
Once the values are rounded up from the array of doubles, how can I return them in an array of integers?