how to get a number from an array? : question:   
    Suppose this is the number in my array 1,2,3,4,5,6,7,8
    and each number is a position like ::
    1=1 ,2=2 , 3=3,  4=4,  5=5,  6=6,  7=7,  8=8
    
    It is not an array position just the number position
    Now i want to remove the number in odd position then it becomes 2,4,6,8 ::
    2=1, 4=2,  6=3,  8=4,
    Now again i want to remove from the odd position so it becomes 4,8
    4=1,  8=2
    Now the answer is 8 
    so how to get this 8 
        
    Code:
 
    int [] arr = new int [] {1, 2, 3, 4, 5, 6, 7, 8}; //I am taking certain 
    number in array   
    System.out.println("Elements of given array present on even position:"); 
    for (int i = 1; i < arr.length; i = i+2) 
         {   
              System.out.println(arr[i]);
         }
    must get the value as 8 but in 
    output:
    2 
    2
    2
    2
    4
    4
    4
    4

    and so on
