A String array can be declared and initialized in the following way:
String[] str = {\"A\", \"B\"};
but for a method which accepts a String arr