Java String Suffix suffix(String str, String suf)

Here you can find the source of suffix(String str, String suf)

Description

suffix

License

Open Source License

Declaration

static boolean suffix(String str, String suf) 

Method Source Code

//package com.java2s;

public class Main {
    static boolean suffix(String str, String suf) {
        return (str.length() >= suf.length())
                && (str.substring(str.length() - suf.length(), str.length()).equals(suf));
    }//from   ww w  .j  a  v  a2s.  co  m
}

Related

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