Best way to remove duplicate value from an int array without using an extra array?
<p>I need to remove duplicate value from an int array without using an extra array and after removing duplicate value from array how can i resize the length of array?</p>

<p>eg:-</p>

<p>int []arr = new int [] {1,2,1,3,3,5,6,1,3,2,8}    //array length is 11 </p>

<p>after removing duplicate value output should be as {1,2,3,5,6,8} // array length is 6</p>

<p>Is it possible then how??</p>

<p>**I am not allowed to use predefined methods, need to perform with proper logic only.</p>
