public static int[] findTarget(int[] array,int target) {
int[] ret = {-1,-1};
for (int i = 0; i < array.length; i++) {
for (int j = i+1; j < array.length; j++) {
if(array[i] + array[j] == target) {
ret[0] = i;
ret[1] = j;
return ret;
}
}
}
return ret;
}