3/13 stuck but not sure why

<PLEASE USE THE FOLLOWING TEMPLATE TO HELP YOU CREATE A GREAT POST!>

<Below this line, add a link to the EXACT exercise that you are stuck at.>
https://www.codecademy.com/en/courses/learn-java/lessons/object-oriented-programming/exercises/classes-constructors?action=resume

<In what way does your code behave incorrectly? Include ALL error messages.>
Dog.java:7: error: illegal start of expression
public static void main(String args) {
^
Dog.java:7: error: illegal start of expression
public static void main(String args) {
^
Dog.java:7: error: ‘;’ expected
public static void main(String args) {
^
Dog.java:7: error: ‘.class’ expected
public static void main(String args) {
^
Dog.java:7: error: ‘;’ expected
public static void main(String args) {
^
Dog.java:9: error: reached end of file while parsing
}
^
6 errors

```

class Dog {

//The class constructor the Dog class
public Dog() {

public static void main(String[] args) {

}
<do not remove the three backticks above>

Hi it’s missing the closing } og teh Dog class


im confused

you should close it like yjay

class Dog {

      //The class constructor the Dog class
      public Dog() {
	    public static void main(String[] args) {

	    }
    }//Here close the public Dog
}//here Close the class Dog 

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.