Executing this code this error is shown. how to solve this error. we have not learned this type of syntax

public class Solution {

public int[] searchRange(int[] nums, int target) {
    int s = find(nums, target);
    if(s == nums.length || nums[s] != target) {
        return new int[]{-1, -1};
    }
    int e = find(nums, target + 1) - 1;
    if(e == nums.length || nums[e] != target) {
        return new int[]{-1, -1};
    }   
    return new int[]{s, e};
}

private int find(int[] nums, int target){
    int s = 0, e = nums.length;
    while(s < e){
        int m = (s + e) / 2;
        if(nums[m] >= target) {
            e = m;
        } else {
            s = m + 1;
        }
    }
    return s;
}

}

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

@vaibhavsinghal1307_230fd2e32352ea3c when you’re submitting anycode in codingblocks ide your class name should be “main” not any other name just always “main”.

showing error on online compilers and even on coding block while using public class Main

@vaibhavsinghal1307_230fd2e32352ea3c in “main” m should be small not capital.Every other online compiler has its own name for class but for coding blocks it should be “main” everything in small.

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.