Java Collection Remove removeArrayMarkerFromCollectionToString(Collection col)

Here you can find the source of removeArrayMarkerFromCollectionToString(Collection col)

Description

remove Array Marker From Collection To String

License

Open Source License

Declaration

public static final String removeArrayMarkerFromCollectionToString(Collection<String> col) 

Method Source Code


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

import java.util.Collection;

public class Main {

    public static final String removeArrayMarkerFromCollectionToString(Collection<String> col) {
        return col.toString().replaceAll("\\[", "").replaceAll("\\]", "");
    }//from   www . j a v  a 2  s  . c  o  m
}

Related

  1. removeAll(final Collection collection, final T... objects)
  2. removeAllElements(Collection data, T value)
  3. removeAllFromCollection(Collection collection, Collection toRemove)
  4. removeAllFromSet(AbstractSet collection, Collection toRemove)
  5. removeAny(Collection collection)
  6. removeArrayToCollection(T[] array, Collection collection)
  7. removed(Collection old, Collection nu)
  8. removed(Collection a, Collection b)
  9. removeDuplicates(Collection collection)