J2ME学习笔记--关于多线程,集合,lang,util的思考

来源:互联网 发布:剑三李忘生捏脸数据 编辑:程序博客网 时间:2024/06/10 09:34

1.booleancontains(Object elem)
          Tests if the specified object is a component in this vector.查找是否指定的对象在集合中。

 

2.booleanisEmpty()
          Tests if this vector has no components.测试是否集合为空。

 

3.Objectput(Object key, Object value)
          Maps the specified key to the specified value in this hashtable注意两个参数都是对象类型,如:ht.put("年龄",new Integer(25)).

 

 

4.抽象类的创建及方法调用。

 

5.线程的同步,关于买票问题的分析?都是在--前面加Thread.LEEP来试验模拟安全问题的。(注意为什么要用Runnable而不用Thread,两者的区别)

 

6.注意String和StringBuffer的区别

 

7.char[] toCharArray()
          Converts this string to a new character array. 注意转换过程中占用空间大小的变化

 

8.String trim()
          Removes white space from both ends of this string中间的空格是去不掉的

 

9.为什么字符串的比较用equals()而不用==