public class Test4 {
private static final int count=6;
private static final int key=3;
public static void main(String[] args) {
int[]arr=new int[count];
for (int i = 0; i < count; i++) {
arr[i]=i+1;
}
System.out.println(getPosition(arr, key));
}
public static int getPosition(int[]arr, int key){
int index=0;
int count=1;