如何把字符串数组置空?--在线等 我看了一下:strs 置空 不能解决问题,如何删除 字符串数组 strs 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 public class test { public static void main(String[] args){ String[] strs = new String[255]; for(int i=0; i<100; i++){ strs[i] = Integer.toString(i); } // strs = null; System.out.println("strs = " + strs); //strs = null }} 如何删除 字符串数组 strs 用Vector吧Vector strs = new Vector(); 我看了一下:strs 置空 不能解决问题,如何删除 字符串数组 strs----------------------------------------------------------------------楼主想解决什么问题?strs置空后,将没有引用指向刚才你所开辟的数组空间,这样,一段时间后该数组空间就将被回收,难道还不能解决问题吗? strs =null;就是空啊,你怎么测试出不为空的结果啊? 用{ String[] strs = new String[10];…… }的程序块来结束strs的生命周期。 strs=null结果不为空???????? 顺便俺提个问题;怎么把字符串数组重新负值例如:String a[]={"a","b"};怎么才能让a[]={"a","b","c"}; 一直以为位运算,左移能移出正数,但发现不行,大家调下。 ASCII和GDSII格式的转换 swing问题,如何实现点击button弹出另一个页面,菜鸟~~~ java操作Excel文件,使用jxl.jar包 请求高手指点迷津!!关于ensureCapacity()的使用,郁闷好几天拉! 又是接口!! 请问高手用 OutputStream 的实施类怎样给一个已存在文件追加内容? ResultSet 与 DataSet 有转换的办法么? 很疑惑啊~!!!!!!!! 两个小问题。。。 哪里有ECLIPSE的API文档,我只在网上早到在线的,我需要可以下载的 高分求jdbc的简单问题,在线等急
public static void main(String[] args){
String[] strs = new String[255];
for(int i=0; i<100; i++){
strs[i] = Integer.toString(i);
}
//
strs = null;
System.out.println("strs = " + strs);
//strs = null
}
}
strs 置空 不能解决问题,如何删除 字符串数组 strs----------------------------------------------------------------------
楼主想解决什么问题?
strs置空后,将没有引用指向刚才你所开辟的数组空间,这样,一段时间后该数组空间就将被回收,难道还不能解决问题吗?
就是空啊,你怎么测试出不为空的结果啊?
结果不为空????????
怎么把字符串数组重新负值
例如:String a[]={"a","b"};
怎么才能让a[]={"a","b","c"};