class Locall
{
int a=10;
public void f()
{
class Inner
{
int c=20;
void hi()
{
System.out.println(a);
System.out.println(c);
}
}
Inner in=new Inner();
in.hi();
}
public static void main(string[] agrs)
{
Locall ob =new Locall();
ob.f();
}
}
为什么in 后面不能调用hi()方法啊?
{
int a=10;
public void f()
{
class Inner
{
int c=20;
void hi()
{
System.out.println(a);
System.out.println(c);
}
}
Inner in=new Inner();
in.hi();
}
public static void main(string[] agrs)
{
Locall ob =new Locall();
ob.f();
}
}
为什么in 后面不能调用hi()方法啊?
例如
createQuery(" from 你的表名 as 临时表名 where 临时表名.字段名 = ?")