public class Solution { public void FindNumsAppearOnce(int [] array,int num1[] , int num2[]) { int count = 0; int[]a={0,0}; int index = 0; for(int i = 0;i<array.length;i++){ for(int j = 0;j<array.length;j++){ if(array[i] == array[j]){ count++; } } if(count == 1){ a[index++]=array[i]; } count = 0; } num1[0] = a[0]; num2[0] = a[1]; } }