Welcome to the Ranch
The only way you can get that code to run is if you have a class somewhere called
string. In which case it will thrown an Exception because of the incorrect format of the main method signature. By the way: it should read String[] args (or String... args) because the [] is part of the type not part of the parameter name. You must have a very old book if it shows the [] after args.