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
You can't name your class String because that is a reserved word similar to double or else.
Here is a list of reserved Java keywords: https://en.wikipedia.org/wiki/List_of_Java_keywords