Java String Ends With endsWith(String string, String... end)

Here you can find the source of endsWith(String string, String... end)

Description

ends With

License

Open Source License

Declaration

public static boolean endsWith(String string, String... end) 

Method Source Code

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

public class Main {
    public static boolean endsWith(String string, String... end) {
        for (String s : end) {
            if (string.endsWith(s))
                return true;
        }//from w  w  w  .ja v  a  2 s . c o m
        return false;
    }
}

Related

  1. endsWith(String str, String suffix)
  2. endsWith(String str, String suffix)
  3. endsWith(String str, String suffix, boolean ignoreCase)
  4. EndsWith(String str, String suffix, int strStartPos)
  5. endsWith(String string, char character)
  6. endsWith(String string, String... endsWithText)
  7. endsWith(String value, String[] suffixes)
  8. EndsWith(String x, String z)
  9. endsWith(String[] endsWith, String line)