| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
共有 426 人关注过本帖
标题:[求助]请教一条语句的功能
取消只看楼主 加入收藏
xinghun868
Rank: 1
等 级:新手上路
帖 子:62
专家分:0
注 册:2007-6-1
收藏
 问题点数:0 回复次数:1 
[求助]请教一条语句的功能
import java.io.*;
public class Example
{
public static void main(String[] args)
{
String aString = "这是一个测试串,This is a test string.";
String anotherString = null;
try {
anotherString = new String(aString.getBytes("GBK"), "ISO8859_1");
}
catch (UnsupportedEncodingException ex) {
}
System.out.println(aString.length() + "," + anotherString.length());
}
}

请教大侠,红线的语句实现的功能是什么啊???
搜索更多相关主题的帖子: 语句 
2007-07-04 20:14
xinghun868
Rank: 1
等 级:新手上路
帖 子:62
专家分:0
注 册:2007-6-1
收藏
得分:0 
谢谢

2007-07-04 21:42
快速回复:[求助]请教一条语句的功能
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.020805 second(s), 10 queries.
Copyright©2004-2025, BC-CN.NET, All Rights Reserved