EL表达式中如何截取字符串可以截取,用fn函数:下面是JSTL中自带的方法列表以及其描述函数名
函数说明 使用举例fn:contains 判定字符串是否包含另外一个字符串 fn:containsIgnoreCase
判定字符串是否包含另外一个字符串(大小写无关) fn:endsWith 判定字符串是...
分类:
其他好文 时间:
2014-05-24 00:03:33
阅读次数:
237
题目:Given a binary tree, determine if it is a valid
binary search tree (BST).Assume a BST is defined as follows:The left subtree of
a node contains onl...
分类:
其他好文 时间:
2014-05-23 12:20:50
阅读次数:
407
C#中查询字符串中是否包含指定字符/串,使用IndexOf还是Contains?这是一个很常见的命题,以前也没有注意,今天QQ群里有人提起,于是就做了下试验,代码如下:using
System;using System.Diagnostics;namespace ConsoleApplication...
分类:
其他好文 时间:
2014-05-23 11:50:40
阅读次数:
270
21.Collection接口:
1>容器类的添加、删除:
· add(Object o) :将对象添加到集合。
· Remove(Object o) :删除集合中与o相匹配的对象。
2>容器中类的查询:
· Size(): 返回集合中元素的个数。
· isEmpty(): 判断集合中是否包含元素。
· contains(Object o): 判断集合中是否包...
分类:
编程语言 时间:
2014-05-22 13:03:23
阅读次数:
271
如何复制一个对象?有哪些方式?Clone or 直接赋值Hashtable 和 HashMap
的区别1.hashMap去掉了HashTable
的contains方法,但是加上了containsValue()和containsKey()方法。2.hashTable同步的,而HashMap是非同步的...
分类:
编程语言 时间:
2014-05-21 21:40:52
阅读次数:
375
Given a sorted linked list, delete all nodes
that have duplicate numbers, leaving onlydistinctnumbers from the original
list.For example,Given1->2->3-...
分类:
其他好文 时间:
2014-05-21 17:51:09
阅读次数:
190
遇到引用库重复定义的问题,需要解决。项目需要,同时引用ZBar和QQ授权登录SDK,由于二者均使用了Base64处理数据,XCode编译时报错:duplicate
symbol _base64_encode in:...\libzbar.a(symbol.o)...\TencentOpenAPI(b...
分类:
其他好文 时间:
2014-05-19 18:25:45
阅读次数:
236
A linked list is given such that each node
contains an additional random pointer which could point to any node in the list
or null.Return a deep copy ...
分类:
其他好文 时间:
2014-05-19 15:50:28
阅读次数:
447
android.view.ViewConfiguration
Contains methods to standard constants used in the UI for
timeouts, sizes, and distances.
常用方法:
ViewConfiguration.get(getContext()).getScaledTouchSlop()
...
分类:
移动开发 时间:
2014-05-18 14:10:47
阅读次数:
232
# This is the main Apache HTTP server configuration
file. It contains the这是Apache HTTP Server的主配置文件。它包括了# configuration directives
that give the serve...
分类:
其他好文 时间:
2014-05-18 02:32:54
阅读次数:
272