ArrayList<Int> Collections.Sort and LineNumberReader Help How to
<p>I have a issue i can't get it to work now let going to the point a explain in the code thanks.</p>

<p>This is my class: what I want to do is insert the Integers sort the list and buffer writer in a column with out coma. Now I getting this: 
[1110018, 1110032, 1110056, 1110059, 1110063, 1110085, 1110096, 1110123, 1110125, 1110185, 1110456, 1110459]<br/>
<br/>I want like this:<br/>
111xxxxx<br/>
111xxxx<br/>
xxxx.......<br/></p>

<p>I can't do it in single array, have to be in ArrayList.<br/>
This is my collecting:<br/>
 list.addNumbers(numbers);<br/>
 list.display();<br/>
<br/>
This is my writer: Is buffered<br/>
coma.write("\n"+list.display());<br/> 
  coma.flush();<br/></p>

<p><em>*</em>*public class IdCount {<br/>
  private ArrayList properNumber = new ArrayList&lt;>();<br/></p>

<pre><code> public void addNumbers(Integer numbers) {&lt;br/&gt;
properNumber.add(numbers);**&lt;br/&gt;  
</code></pre>

<p>Collections.sort(properNumber);<br/>
    }<br/>
     public String display() {<br/>
(I try .toString() Not work)<br/>
            return properNumber.toString();</p>

<pre><code>      }**  
</code></pre>

<p>My second issue is LineNumberReader: This is my collecting and my writing: <br/>
try {<br/>
            Reader input = new BufferedReader( new FileReader(inputFile));<br/>
            try (Scanner in = new Scanner(input)) {<br/>
                while (in.hasNext()) {<br/>
                   (More Code)<br/>
                    asp = new LineNumberReader(input);   <br/>
                    int rom = 0;<br/></p>

<pre><code>              while (asp.readLine()!=null){&lt;br/&gt;
                  rom++;&lt;br/&gt;
              }
          System.out.println(rom);&lt;br/&gt;coma.write(rom);&lt;br/&gt;
</code></pre>

<p>This one not write anything an my System Print give me only 12 0 in column.<br/>
Thank you for the help in advances. Any help it will appreciate. </p>
