l*********r 发帖数: 80 | 1 public TreeMap userAccount;
public TreeMap messagePool;
public hw1_BOM()
{
userAccount=new TreeMap();
messagePool=new TreeMap();
}
public class mPool
{
public int mparentID;
public String mUsername;
public String mSubject;
public String mText;
public mPool(int parentid, String username, String subject, String text)
{
mparentID=parentid;
mUsername=username;
mSubject=subject;
mText=text;
}
}
***************what's wrong with this one below?**********
m | g*****g 发帖数: 34805 | 2 1 is not an object, replace with new Integer(1) or ""+1 if you want to
use String
【在 l*********r 的大作中提到】 : public TreeMap userAccount; : public TreeMap messagePool; : public hw1_BOM() : { : userAccount=new TreeMap(); : messagePool=new TreeMap(); : } : : public class mPool : {
| l*********r 发帖数: 80 | 3 你怎么那么牛呀?
【在 g*****g 的大作中提到】 : 1 is not an object, replace with new Integer(1) or ""+1 if you want to : use String
|
|