Structure to store the minimum element and its position
public class data { public int element ; public int position ; } ; static data findMinElement ( int [ ] arr , int n ) { data result = new data ( ) ;