interface Inter
{
void method();
}
class Test
{
static Inter function()
{
new Inter()
{
public void method()
{
System.out.println("njarb");
}
}.method();
}
}
class Demo
{
public static void main(String[] args)
{
Test.function();
}
}
{
void method();
}
class Test
{
static Inter function()
{
new Inter()
{
public void method()
{
System.out.println("njarb");
}
}.method();
}
}
class Demo
{
public static void main(String[] args)
{
Test.function();
}
}