Java List Join joinLong(List lst, String prefix)

Here you can find the source of joinLong(List lst, String prefix)

Description

join Long

License

Open Source License

Declaration

public static String joinLong(List<Long> lst, String prefix) 

Method Source Code


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

import java.util.List;

public class Main {
    public static String joinLong(List<Long> lst, String prefix) {
        final StringBuilder sb = new StringBuilder();
        String separator = "";
        for (Long f : lst) {
            sb.append(separator);/*  w  w  w.  j  a  va 2 s  .c o  m*/
            separator = prefix;
            sb.append(f);
        }
        return sb.toString();
    }
}

Related

  1. joinList(String separater, List list)
  2. joinLists( final List> lists)
  3. joinLists(List A, List B, double epsilon)
  4. joinLists(List... list)
  5. joinListToString(List lsStr, String sSeparator)
  6. joinNiceString(List strings)
  7. joinRecords(List first, List second, String key)
  8. joinRelativePath(List components)
  9. joinSegments(List segments, int startIndex, int endIndex)