Java String Join join(Enumeration enumeration, String s)

Here you can find the source of join(Enumeration enumeration, String s)

Description

join

License

Open Source License

Declaration

public static String join(Enumeration enumeration, String s) 

Method Source Code

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

import java.util.*;

public class Main {
    public static String join(Enumeration enumeration, String s) {
        StringBuffer stringbuffer = new StringBuffer();
        while (enumeration.hasMoreElements()) {
            String s1 = (String) enumeration.nextElement();
            stringbuffer.append(s1);/*w ww  . j  a v  a 2  s.c  o m*/
            if (enumeration.hasMoreElements()) {
                stringbuffer.append(s);
            }
        }
        return stringbuffer.toString();
    }
}

Related

  1. invertPhoneNumber(String storedNumber, String joinString)
  2. Join(ArrayList list, String delimiter)
  3. join(boolean endSlash, Collection paths)
  4. join(Collection collection, String separator)
  5. join(Collection items, String delimiter)
  6. join(Enumeration values, CharSequence separator)
  7. join(final Collection input, final String link)
  8. join(final String sep, final Iterable strs)
  9. join(final String separator, final Collection objs)