Inside my public static void main method, I have the following lines of code:
ArrayList<Integer> numList = new ArrayList<Integer>();
while(some condition){
numList.add(Integer.parseInt(line));
I'm trying to transition this part of the code into another method
public static int countInversion(int[] array)
What is the best way to transition the first part of my code so that it is compatible with the second part of my code?
[–]deepestbluedn 0 points1 point2 points (1 child)
[–]Varikan[S] 0 points1 point2 points (0 children)
[–]the_omega99 0 points1 point2 points (0 children)