Java List Concatenate concatName(String name, List names)

Here you can find the source of concatName(String name, List names)

Description

concat Name

License

Open Source License

Declaration

public static String concatName(String name, List<String> names) 

Method Source Code


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

import java.util.Collections;
import java.util.List;

public class Main {
    public static String concatName(String name, List<String> names) {
        names.add(name);/* ww  w  .j  a  v  a  2  s .  c om*/
        Collections.sort(names);

        StringBuilder sb = new StringBuilder();
        for (String id : names) {
            sb.append(id);
        }

        return sb.toString();
    }
}

Related

  1. concatLineSeparated(List discountCommentCauseList)
  2. concatList(List list)
  3. concatList(List... array)
  4. concatList(List strings)
  5. concatListToString(List suggestedList)
  6. concatNodeList(List list)
  7. concatPathTokens(String root, List tokens)
  8. concatRefs(List refs)
  9. concatString(List args)