JAVA hashmap.put参数问题

public class S {
HashMap<String,String> hh;
public S()
{
hh=new HashMap<String,String>();

}
}
public class AS {
HashMap<String,S> s;
public AS()
{
S ex=new S();
s.put("sd",ex);
}
}
运行到s.put时就会出现source not found

很明显的错误啊,你的AS类里的对象s根本没有实例化。
温馨提示:答案为网友推荐,仅供参考