Java code to find the repeating and missing numbers and inlude the missing sequence number
<p>I want a program to find the repeated and missing number in the list and replace it with the right sequence number.</p>

<p>Note: Maximum length of list is 10.</p>

<pre><code>Example1:  1, 1, 2, 3, 4, 5   should display as: 1, 2, 3, 4, 5, 6

Example2:  1, 2, 2, 3, 4, 5   should display as: 1, 2, 3, 4, 5, 6

Example3:  2, 3, 4, 5         should display as: 2, 3, 4, 5
</code></pre>
