Here you can find the source of csvTagsToList(String tags)
Parameter | Description |
---|---|
tags | a parameter |
public static List<String> csvTagsToList(String tags)
//package com.java2s; // Licensed to the Apache Software Foundation (ASF) under one import java.util.ArrayList; import java.util.List; public class Main { /**// w w w. j a v a2 s . c o m * @param tags * @return List of tags */ public static List<String> csvTagsToList(String tags) { List<String> tagsList = new ArrayList<String>(); if (tags != null) { String[] tokens = tags.split(","); for (int i = 0; i < tokens.length; i++) { tagsList.add(tokens[i].trim()); } } return tagsList; } }