【发布时间】:2015-06-28 20:17:56
【问题描述】:
堆栈溢出只是想让我在这里写更多。
Class A{
static Class B{
int i,j;
}
B method(int x){
// how to return object of type B
}
}
Class Main(){
// how do i call method B here
}
【问题讨论】:
-
"堆栈溢出只是想让我在这里写更多。"这是有原因的。您没有解释是什么阻止您编写自己的代码。你有遇到什么问题吗?也就是说你需要描述what have you tried already。
-
没有静态内部类。
标签: java static inner-classes