Java Vector deleteLast(Vector list)

Here you can find the source of deleteLast(Vector list)

Description

delete Last

License

Apache License

Declaration

public static void deleteLast(Vector list) 

Method Source Code


//package com.java2s;
//License from project: Apache License 

import java.util.*;

public class Main {
    public static void deleteLast(Vector list) {
        int lastIndex = list.size() - 1;
        list.remove(lastIndex);/*from ww w.  jav a2  s  .c  o m*/
    }
}

Related

  1. clonevector(Vector vec)
  2. combineWithQuotes(Vector commands, int startAt)
  3. Contains(Vector V, int[] elt)
  4. copyVector(Vector V)
  5. enumerationToVector(Enumeration pEnumeration_)
  6. getCommaListFromVector(Vector sourceVector)
  7. getNonNullVectors(int[][] usageM)
  8. hasDuplicates(Vector v)