How to access the tokenized value in Java
<p>I have tokenized string, I want to access the 1st,2nd,3rd value from it.</p>

<p>Can anyone look into this?</p>

<p>Thanks in advance!</p>

<p>Here is the code</p>

<pre><code>String cssvalue = webDriver.findElement(By.id(elementId)).getCssValue("color");
String s = cssvalue;
StringTokenizer st = new StringTokenizer(s, ",() ");
while (st.hasMoreTokens()) {

    log.info("TOken: "+st.nextToken());
}
</code></pre>
