I\'m taking a Java class for college, and was working on some given tasks. This is the code I wrote for it.
public class String { public static void main(String
Since your class is named String, unqualified type reference in String city is taken as reference to your own class.
String
String city
Either rename the class to some other name, or you'll have to write java.lang.String wherever you reference the "built-in" Java String class.
java.lang.String