Java String Suffix suffix(String[] columns, String suffix)

Here you can find the source of suffix(String[] columns, String suffix)

Description

suffix

License

Open Source License

Declaration

public static String[] suffix(String[] columns, String suffix) 

Method Source Code

//package com.java2s;

public class Main {

    public static String[] suffix(String[] columns, String suffix) {
        if (suffix == null)
            return columns;
        String[] qualified = new String[columns.length];
        for (int i = 0; i < columns.length; i++) {
            qualified[i] = suffix(columns[i], suffix);
        }//  w  ww . j  a  v  a  2  s  .co  m
        return qualified;
    }

    public static String suffix(String name, String suffix) {
        return (suffix == null) ? name : name + suffix;
    }
}

Related

  1. suffix(String s, String suffix)
  2. suffix(String str, int width, String with)
  3. suffix(String str, String suf)
  4. suffix(String string, final String suffix)
  5. suffix(String value, String prefix)
  6. suffixClassName(String tableName)
  7. suffixes(char[] x, int[] suff)
  8. suffixLabel(String label, String tagSuffix)
  9. suffixName(String name)