Java List Last Item removeLast(List l)

Here you can find the source of removeLast(List l)

Description

remove Last

License

Open Source License

Declaration

public static <T> T removeLast(List<T> l) 

Method Source Code


//package com.java2s;
//License from project: Open Source License 

import java.util.*;

public class Main {
    public static <T> T removeLast(List<T> l) {
        return l.remove(l.size() - 1);
    }/*from  w  w  w. j a v  a 2 s  .co  m*/
}

Related

  1. lastIndexOfIdentical(List l, T element, int startingAt)
  2. listToWorkspaceLocationHistoryString(List lastUsedWorkspaceLocationList)
  3. removeBySwapLast(List a, Object o)
  4. removeLast(List list)
  5. removeLast(List aList)
  6. removeLast(List list)
  7. removeLastElements(List list, int fromIdx)