interface Monster {
void menace();
}
interface DangerousAMonster extends Monster {
void destroy();
}
void foo() {
JFrame jf=new JFrame();
jf.addKeyListener(
new KeyAdapter {
public void keyPressed(keyEvent k) {...}
}
);
}
public class Parcell {
class Contents {...}
public static void main(String[]) {
Parcell p=new Parcell();
Parcell.Contents c=p.new Contents();
}
}
class Top {
int i,j;
static class SomeClass {
int k;
void foo() {...}
}
void bar () {
SomeClass sc=new SomeClass();
}
}
class SomeOther {
Top.SomeClass mySc=new Top.SomeClass();
}
class top {
int i=33;
class myNested {
int k=i;
void foo() {}
}
void bar() {
myNested mn1=new myNested();
myNested mn2=new myNested();
mn1.k=464* mn2.k;
}
}
import java.applet.*;
import java.awt.*;
import java.awt.event.*;
public class f extends Applet {
Button apple=new Button("Press me");
public void init() {
class MyinnerBHClass implements java.awt.event.ActionListener {
int i=1;
public void actionPerformed (ActionEvent e) {
,..
}
}
add(apple);
apple.addActionListener(new MyinnerBHClass());
}
}
void menace();
}
interface DangerousAMonster extends Monster {
void destroy();
}
void foo() {
JFrame jf=new JFrame();
jf.addKeyListener(
new KeyAdapter {
public void keyPressed(keyEvent k) {...}
}
);
}
public class Parcell {
class Contents {...}
public static void main(String[]) {
Parcell p=new Parcell();
Parcell.Contents c=p.new Contents();
}
}
class Top {
int i,j;
static class SomeClass {
int k;
void foo() {...}
}
void bar () {
SomeClass sc=new SomeClass();
}
}
class SomeOther {
Top.SomeClass mySc=new Top.SomeClass();
}
class top {
int i=33;
class myNested {
int k=i;
void foo() {}
}
void bar() {
myNested mn1=new myNested();
myNested mn2=new myNested();
mn1.k=464* mn2.k;
}
}
import java.applet.*;
import java.awt.*;
import java.awt.event.*;
public class f extends Applet {
Button apple=new Button("Press me");
public void init() {
class MyinnerBHClass implements java.awt.event.ActionListener {
int i=1;
public void actionPerformed (ActionEvent e) {
,..
}
}
add(apple);
apple.addActionListener(new MyinnerBHClass());
}
}