I want to declare an array of strings but Java is complaining when I do this: String[] ss = ("A", "B", "C", "D");
What am I doing wrong?
Try replacing the parentheses with braces:
String[] ss = {"A", "B", "C", "D"};
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With