请帮我看看,这段代码哪里错了!

[复制链接]
查看11 | 回复6 | 2007-11-28 15:47:16 | 显示全部楼层 |阅读模式
package javax.mail.internet;

public class AddressException extends ParseException
{
public AddressException()
{
pos = -1;
}
public AddressException(String s)
{
super(s);
pos = -1;
}
public AddressException(String s, String s1)
{
super(s);
pos = -1;
ref = s1;
}
public AddressException(String s, String s1, int i)
{
super(s);
pos = -1;
ref = s1;
pos = i;
}
public String getRef()
{
return ref;
}
public int getPos()
{
return pos;
}
public String toString()
{
String s = super.toString();
if(ref == null)

return s;
s = s + " in string ``" + ref + "'";
if(pos < 0)

return s;
else

return s + " at position " + pos;
}
protected String ref;
protected int pos;
}
回复

使用道具 举报

千问 | 2007-11-28 15:47:16 | 显示全部楼层
你吧人当编译器用啊
你不会叫ide帮你看看啊
回复

使用道具 举报

千问 | 2007-11-28 15:47:16 | 显示全部楼层
贴一下错误把
回复

使用道具 举报

千问 | 2007-11-28 15:47:16 | 显示全部楼层
看下错误日志阿
回复

使用道具 举报

千问 | 2007-11-28 15:47:16 | 显示全部楼层
貌似是这个


http://java.sun.com/j2ee/sdk_1.3 ... dressException.html
是你的代码的问题还是别人代码的问题?
回复

使用道具 举报

千问 | 2007-11-28 15:47:16 | 显示全部楼层
请先去考SCJP。另外,下次再看见类似的帖子之后请版主PM发帖人修改帖子,否则直接进回收站。这种连基本情况都不描述清楚的东西,浪费大家的时间。
回复

使用道具 举报

千问 | 2007-11-28 15:47:16 | 显示全部楼层
原帖由 yining 于 2007-11-21 11:49 发表
请先去考SCJP。另外,下次再看见类似的帖子之后请版主PM发帖人修改帖子,否则直接进回收站。这种连基本情况都不描述清楚的东西,浪费大家的时间。

严重同意
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行