I get the following String from an excel sheet and want to split it up:
Mars Red Metallic / Dark Slate Metallic …;Sport windshield.;Black powertrain.
As seperater I wanted to use the ‘;’ but also tried ‘.’ and ‘_’
To test it I tried to simply print the first part of the String:
String a = split(attribute, ';')WebUI.println(a)
The error message:
FAILED because (of) (Stack trace: org.codehaus.groovy.runtime.InvokerInvocationException: groovy.lang.MissingMethodException: No signature of method: bmw_m.colorcheck.split() is applicable for argument types: (java.lang.String, java.lang.String) values: [Mars Red Metallic / Dark Slate Metallic …;Sport windshield.;Black powertrain., …]
Possible solutions: split(groovy.lang.Closure), wait(), sprintf(java.lang.String, java.lang.Object), sprintf(java.lang.String, [Ljava.lang.Object;), inspect(), wait(long)
Which doesn’t really tell me the solution to be honest. It seems like the seperator ‘;’ is used as ‘…’ ?
Anyone knows whats wrong or has another method of splitting up Strings?