Typical problem in java program ?

Typical problem in java program ?

I have three java files , i am pasting them here. Please show me the errors. Compilation error in Cat.java

File 1 : Dog.java

public class Dog extends Animal {

public String noise() { return "back"; }

}

File 2 : Cat.java

public class Cat extends Animal {

public String noise() {

return "meow";

)

}

File 3:AnimalTest.java

public class AnimalTest {

public static void main(String[] args)

{

Animal animal = new Dog();

//Cat cat = (Cat)animal;

Cat cat = new Cat();

System.out.println(cat.noise()...

}

}

Output :

D:\>javac AnimalTest.java

.\Cat.java:4: illegal start of expression

)

^

.\Cat.java:5: ';' expected

}

^

.\Cat.java:5: '}' expected

}

^

3 errors

Please help me. Not a homework.

Message was edited by:

Taton

[978 byte] By [Tatona] at [2007-10-3 2:49:22]
# 1
perhaps)should look like}
Michael_Dunna at 2007-7-14 20:38:09 > top of Java-index,Java Essentials,New To Java...
# 2

D:\>javac AnimalTest.java

.\Cat.java:4: illegal start of expression

)

^

You really need to start to understand what you are doing. Look at the error, it even points to what the error is. Look at where this bracket appears in your code and think to yourself "Should that be there or should it be something else" Once you fix that, the other errors will probably disappear.

Stoopid lag.

Message was edited by:

flounder

floundera at 2007-7-14 20:38:09 > top of Java-index,Java Essentials,New To Java...
# 3
Sorry to all. It was impossible to sort out between { and ( in my computer. Solved.
Tatona at 2007-7-14 20:38:09 > top of Java-index,Java Essentials,New To Java...
# 4
> Sorry to all. It was impossible to sort out between {> and ( in my computer. Solved.Change your font to one which makes it easier to distinguish,
ScarletPimpernela at 2007-7-14 20:38:09 > top of Java-index,Java Essentials,New To Java...