解决方案 »
- netbeans6.5里面错误怎么不能自动修改了?
- 新手学java,应该注意哪些?
- 数据库连接问题
- 自己写了一个正则表达式工具(2)
- 关于String类的基本问题
- 老手回答: java 的基本知识
- 我用SQL Server,作的WebMail.附件怎么个保存法好呢?分不多,但必给分。
- 设计一个类似手机短信系统,请高手指点迷津!!!!分不够,再给!
- 谁用过sun.net.smtp.SmtpClient来发过mail啊,本人只是想发邮件而已,并不想登录,100分相送
- 作为java初学者,想请教各位哪里有java编程的相关题库
- java多线程死锁的问题
- 分类统计,不同用户对应的IP,列出每个用户对应的每个IP的值和出现次数
/**
* Removes the first occurrence of the specified element from this list,
* if it is present. If the list does not contain the element, it is
* unchanged. More formally, removes the element with the lowest index
* <tt>i</tt> such that
* <tt>(o==null ? get(i)==null : o.equals(get(i)))</tt>
* (if such an element exists). Returns <tt>true</tt> if this list
* contained the specified element (or equivalently, if this list
* changed as a result of the call).
*
* @param o element to be removed from this list, if present
* @return <tt>true</tt> if this list contained the specified element
*/
public boolean remove(Object o) {
if (o == null) {
for (int index = 0; index < size; index++)
if (elementData[index] == null) {
fastRemove(index);
return true;
}
} else {
for (int index = 0; index < size; index++)
if (o.equals(elementData[index])) {
fastRemove(index);
return true;
}
}
return false;
}