The convention is to use String[] as the main method parameter, but using String... works too, since when you use varargs you can call the method in the same way you call a method with an array as parameter and the parameter itself will be an array inside the method body.
Functionally, it looks like it allows you to nest a variable inside a string without doing concatenation using the + operator. I'm looking for documentation on this feature.
What does ${} (dollar sign and curly braces) mean in a string in ...
String[] errorSoon; // <--declared statement String[] errorSoon = new String[100]; // <--initialized statement You need to initialize the array so it can allocate the correct memory storage for the String elements before you can start setting the index. If you only declare the array (as you did) there is no memory allocated for the String elements, but only a reference handle to errorSoon, and ...
How might I convert an ArrayListI want to get a new string from the third character to the end of the string, e.g. myString[2:end]. If omitting the second part means 'to the end', and if you omit the first part, does it start fro...
How do I get a substring of a string in Python? - Stack Overflow
Use the string.equals(Object other) function to compare strings, not the == operator. The function checks the actual contents of the string, the == operator checks whether the references to the objects are equal. Note that string constants are usually "interned" such that two constants with the same value can actually be compared with ==, but it's better not to rely on that.