I'm facing a Java error but I don't understand why, thats why I post a question here.
I got this error:
No such property: split for class: java.lang.String
With this code:
String cellContent = "[COLUMN columnRef, test]"
cellContent = cellContent.substring(1, cellContent.length() - 1)
String[] splitContent = cellContent.split(', ')
String rowToUse = splitContent[1]
String splitColumn = splitContent[0].split[' ']
String column = splitColumn[1]
Expected result
rowToUse = "test"
column = "columnRef"
The error occurred on this line : String splitColumn = splitContent[0].split[' ']
Someone has any idea? Thanks a lot!