Java Vector to String vector2string(AbstractList v, String sep)

Here you can find the source of vector2string(AbstractList v, String sep)

Description

vectorstring

License

Open Source License

Declaration

public static String vector2string(AbstractList v, String sep) 

Method Source Code

//package com.java2s;
/**//from  w  w  w  . ja  v a  2s.  com
 * Title:        efa - elektronisches Fahrtenbuch f?r Ruderer
 * Copyright:    Copyright (c) 2001-2011 by Nicolas Michael
 * Website:      http://efa.nmichael.de/
 * License:      GNU General Public License v2
 *
 * @author Nicolas Michael
 * @version 2
 */

import java.util.*;

public class Main {
    public static String vector2string(AbstractList v, String sep) {
        if (v == null) {
            return null;
        }
        String s = "";
        for (int i = 0; i < v.size(); i++) {
            s += (i > 0 ? sep : "") + v.get(i);
        }
        return s;
    }
}

Related

  1. convertVectorToString(Vector source, String separator)
  2. convertVectorToStringArray(Vector vector)
  3. toStringArray(Vector V)
  4. vector2String(Vector v, String delimiter)
  5. vector_to_strings(Vector v)
  6. vectorString(Vector vec)
  7. vectorToNickNameArray(Vector nicksAndPaths)