Java String Suffix suffix(String str, int width, String with)

Here you can find the source of suffix(String str, int width, String with)

Description

suffix

License

Open Source License

Declaration

public static String suffix(String str, int width, String with) 

Method Source Code

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

public class Main {
    public static String suffix(String str, int width, String with) {
        StringBuffer ret = new StringBuffer(str);
        while (ret.length() < width)
            ret.append(with);//from  w ww .  ja  va  2 s.  c o  m
        return ret.toString();
    }
}

Related

  1. suffix(String name, char separator)
  2. suffix(String name, String suffix)
  3. suffix(String prefix, String path)
  4. suffix(String s, int delim)
  5. suffix(String s, String suffix)
  6. suffix(String str, String suf)
  7. suffix(String string, final String suffix)
  8. suffix(String value, String prefix)
  9. suffix(String[] columns, String suffix)