[Solved] Java Return method with math operators and an array
Your function should be fine if you just modify your argument to the findDividers method. It should be as follows: //Will return dividers of x, not x/2 public static int[] findDividers(int x) { //not int[] x //if x is of type int[] i.e an array, it makes no sense to //use the “https://stackoverflow.com/” and ‘%’ … Read more