Error: type expected

when i try to compile i get the following error:

Addition.java:38: Type expected.

plusButton.addContainerListener(this);

^

Addition.java:49: Type expected.

calcButton.addActionListener(this);

^

does anyone know what i should insert to compile properly

[315 byte] By [sir_marky] at [2007-9-26 1:17:47]
# 1
You should move those lines to a method.
jsalonen at 2007-6-29 0:47:51 > top of Java-index,Archived Forums,Java Programming...
# 2
if those lines were outside methods, i see that the compiler would says "<identifier> expected"
parthasarkar at 2007-6-29 0:47:51 > top of Java-index,Archived Forums,Java Programming...
# 3
Well, your compiler says that. Different compilers have different error messages.
schapel at 2007-6-29 0:47:51 > top of Java-index,Archived Forums,Java Programming...
# 4
point taken
parthasarkar at 2007-6-29 0:47:51 > top of Java-index,Archived Forums,Java Programming...