You are in the String class, you need to be in Main, so change “public class String” to “public class Main”
1 Like
Frankly, you can change that class to almost anything other than String or System and it will work properly.
2 Likes