split( words, regex )The result is an array of strings, and if you want to use the
individual elements you need to use square-bracket indexing,
with [0] representing the first object
words (String)regex (String)words parametersplit("cat, dog, cow", ", *")
gives a 3-element string array.split("23.0, 45.92", ", ")[0] = "23.0"parseDouble(split("23.0, 45.92", ", ")[0]) = 23String[] split(String, String)