I have an empty array string
String stringArray = "[]";
And I want to convert it to an Array type.
I need this because I want to compare in an if statement if the array is empty. Like
if(stringArray.isEmpty()){
// doSomething
}
Any suggestion how I can do this?
stringArray.equals("[]")? How did you get such a thing in the first place? This sounds very much like an XY problem...