String split array

Posted by mac on Stack Overflow See other posts from Stack Overflow or by mac
Published on 2010-06-14T02:50:26Z Indexed on 2010/06/14 2:52 UTC
Read the original article Hit count: 268

Filed under:
|
|

Intention is to take a current line which contains commas, store trimmed values of all space and store the line into the array.

Why does this not work?

String[] currentLineArray = currentInputLine.replace("\\s", "").split(",");

© Stack Overflow or respective owner

Related posts about java

Related posts about string