![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
SE基础
文章平均质量分 77
在远方啊
追求,生命不止步!
展开
-
JAVA中int与String的类型转换
int -> String int i=12345; String s=""; 第一种方法:s=i+""; 第二种方法:s=String.valueOf(i); 这两种方法有什么区别呢?作用是不是一样的呢?是不是在任何下都能互换呢? String -> int s="12345"; int i; 第一种方法:i=Integer.parseInt(s); 第二种方法:i=Inte转载 2014-06-12 10:09:14 · 824 阅读 · 0 评论 -
动态删除ArrayList中的元素
1 /** 2 * 删除Arraylist中值为"c"的元素 3 */ 4 public static void main(String[] args) { 5 6 List list = new ArrayList(); 7 8 //"c"在Arraylist不连续存储 9转载 2014-07-01 19:57:42 · 575 阅读 · 0 评论