public class JNiMing
{public Contents cont()
{
return new Contents()
{
private int i=1;
public int value(){
return i;
}
};
}public static void main(String args[])
{
JNiMing y=new JNiMing();
System.out.println(y.cont());
}
}
解决方案 »
- 图像操作时:sun.awt.image.ToolkitImage cannot be cast to java.awt.image.BufferedImage
- 文件输出时,多了几个方块,奇怪,大家帮忙~~~
- Thread.currentThread().getContextClassLoader().loadClass有什么用?
- 关于泛型继承的问题<E>
- 给想学JAVA的程序员介绍几本好书!(挑战JAVA程序员系列)
- 菜鸟问问
- 小妹求助,望高手赐教!
- 请问哪里可以下载J2SDK1.4.0和Tomcat 4.0?……急用!!
- Applet能否访问服务器端的数据库?
- ★★★★★★【Applet不支持数据库??!!?】★★★★★★
- 请问能在JComboBox里添加图片吗?如果能请给写下
- String连接的问题
public interface Contents {
int value();
}