public static void main(String args[]){
        int arr[] = {4,2,0,1,3};
        RearrangeSuchThatArriBecomesArrArri rss = new RearrangeSuchThatArriBecomesArrArri();
        rss.rearrange(arr);
        for(int i=0; i < arr.length; i++){
            System.out.print(arr[i]);
        }
    }
http://www.geeksforgeeks.org/rearrange-given-array-place/
src/com/interview/array/RearrangeSuchThatArriBecomesArrArri.java