Method endsWith(String suffix)
Return type: boolean
Member of:
java.lang.String
[
api documentation
] [
main menu
]
Examples of how the element is used
(one line per example):
[
add your own example
]
1
if (filename.endsWith("html") || filename.endsWith("htm"))
2
if (value.startsWith( "\"" ) && value.endsWith( "\"" )) {
3
if (!path.endsWith("\\") && !path.endsWith("/"))
4
if (className.startsWith("[L") && className.endsWith(";")) { // NOI18N
5
return codeBaseAttribute.endsWith( "/" ) ? codeBaseAttribute : (codeBaseAttribute + "/");
6
if (f.getName().endsWith(".jar") || f.getName().endsWith(".zip"))
7
if (!str.endsWith(".")) str += ".";
8
if(path.endsWith("/")) return new JdbcNFile(man, path + name);
9
if (filename.toLowerCase().endsWith(".jar")) {
10
if (file.getName().endsWith(".class")) {
11
if(!s.endsWith(".")){
12
if (tag.endsWith("before") || tag.equals("Header")) currentPage.addRegion("Header", new RegionBefore((Hashtable)attributes.clone()));
13
if (param.endsWith(".class"))
14
if (name.endsWith("[]"))
15
if (!result.endsWith("/") || !result.endsWith("\\")
16
if (value.endsWith(".0"))
17
if(s.endsWith("\n"))
18
if (!arg.endsWith(";")) //$NON-NLS-1$
19
if ( urlStr.endsWith( "/" ) )
20
if( s.endsWith( ".ser")) {
Java and J2SE are trademarks or registered trademarks of Sun Microsystems, Inc. in the United States and other Countries.