title: Array programming in java large size
body: <p>How to declare an array of size 10^9 in java ?.I have tried  Array list but the problem is i need to find minimum and maximum element in array and so I need to compare 0th element of an array with all other elements of array and i initially need some fixed size of array which is required in the input format of array on code-chef. Can anybody help?. I tried using long array but it gave out of memory error.</p>