Java Debugging - Fortune.java file error:

When I try to complete the Fortune.java question it gives me an error about the main. Here’s the error and below is my code:

Error: Main method not found in class Fortune, please define the main method as:
** public static void main(String args)**
or a JavaFX application class must extend javafx.application.Application

Here’s my code:
import java.lang.Math;

class Fortune {

public int generateRandom() {

return (int)(Math.random() * 10);

}

public static void Main(String args) {

Fortune fortuneCookie = new Fortune();
int fortune = fortuneCookie.generateRandom();

if (fortune == 0) {

  System.out.println("Flattery will go far tonight.");

} else if (fortune == 1) {
    
  System.out.println("Don't behave with cold manners.");

} else if (fortune == 2) {
    
  System.out.println("May you someday be carbon neutral");
    
} else if (fortune == 3) {
    
  System.out.println("You have rice in your teeth.");
    
} else if (fortune == 4) {
    
  System.out.println("A conclusion is simply the place where you got tired of thinking.");
    
} else if (fortune == 5) {
    
  System.out.println("No snowflake feels responsible in an avalanche.");
    
} else if (fortune == 6) {
    
  System.out.println("He who laughs last is laughing at you.");
    
} else if (fortune == 7) {
    
  System.out.println("If you look back, you'll soon be going that way.");
    
} else if (fortune == 8) {
    
  System.out.println("You will die alone and poorly dressed.");
    
} else if (fortune == 9) {
    
  System.out.println("The fortune you seek is in another cookie.");
    
}

}

}

Looks like you’ve capitalized Main in your main method declaration. Make sure it’s lowercase. It should look like:

public static void main(String[] args)