class Link{
private class Node{
private String data;
private Node node;
public Node(String data){
this.data=data;}
public String getData(){
return this.data;}}
private Node root;}
public class TestDemo1{
public static void main(String args[]){
Node n=new Node("location");
System.out.println(n.getData());
}}
不是说使用Private修饰了内部类之后只能由外部类自己调用么?