- public class StaticClass {
- public static void main(String[] args) {
- show();
- }
- public static void show(){
- class In{
- In(String name){
- this.name = name;
- }
- private String name;
- public String getName(){
- return name;
- }
- }
- String name = new In("AA").getName();
- System.out.println(name);
- }
- }
复制代码 将别人的代码修改了一下,就得到了这个代码 |