class a
{
class d
{
           int x;
           String b()
     {
                        String i="中华人民共和国";
      return i;
     }
} }
class pp
{
    public static void main(String args[])
{
a my = new a();
System.out.println(my.b());
        }
}
我想调用b()里面的数据...

解决方案 »

  1.   

    class a
    {
    class d
    {
               int x;
               String b()
         {
                            String i="中华人民共和国";
          return i;
         }
    } }
    class pp
    {
        public static void main(String args[])
    {
    a my = new a();
                      a.d ad = my.new d();
    System.out.println(ad.b());
            }
    }