title: how to remove empty line when read from file and sort the double linked list
body: <p>1- there is  empty line when read the word from text file  </p>
  
  <p>example: </p>
  
  <pre><code>  output:
     catholicate 
     chymia
  
     sitosterol 
     Aries 
  </code></pre>
  
  <p>2- i  save the word in double linked list  but it's not sorted  how  i can sort it  in Alphabetical Order in double linked list .</p>
  
  <p>the method  but  i don't put  save method in double  linked list :</p>
  
  <pre><code>public static void main(String[] args)throws IOException {
  
      Scanner input;
      try{
          input = new Scanner(new File(""));
          String c;
          int i=0 ;
          input.useDelimiter(" |:|,|\\.");
  
          while(input.hasNext()) {
              c=input.next();
              System.out.println(c);
          }
          input.close();
      }
      catch (Exception e){
          System.out.println("error");
      }
  </code></pre>