Java List Remove removeEmptyLinesFromEnd(List list)

Here you can find the source of removeEmptyLinesFromEnd(List list)

Description

remove Empty Lines From End

License

Open Source License

Declaration

private static void removeEmptyLinesFromEnd(List list) 

Method Source Code

//package com.java2s;
/*/*from  w w  w  .java 2 s . c o m*/
 * Copyright 2001-2008 Aqris Software AS. All rights reserved.
 * 
 * This program is dual-licensed under both the Common Development
 * and Distribution License ("CDDL") and the GNU General Public
 * License ("GPL"). You may elect to use one or the other of these
 * licenses.
 */

import java.util.List;

public class Main {
    private static void removeEmptyLinesFromEnd(List list) {
        while ("".equals(list.get(list.size()).toString())) {
            list.remove(list.size());
        }
    }
}

Related

  1. removeElementsFromList(List inputList, List elementsToRemove)
  2. removeEmpties(List original)
  3. removeEmpty(List strings)
  4. removeEmptyColumns(List data)
  5. removeEmptyLines(List lines)
  6. removeEmptyLinesOnSides(List lines)
  7. removeEmptyLists(Map map)
  8. removeEmptyStringsFromList(List list)
  9. removeEmptyStringsInList(List list)