It looks like you tried to use public class BinSearch
as your main class. However, your parentheses enclose code before your main args.
public class MyClass {
//}// no bracket here
public static void main(String[] args) {
}
}
If you want to use a class to create Objects that use methods such as your public static final int
, create a new class before.
class NewClass {
}
public class MyClass {
public static void main(String[] args) {
}
}