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

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()而不用==

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值