JAVA String split on interval

Posted by user2920611 on Stack Overflow See other posts from Stack Overflow or by user2920611
Published on 2013-10-25T15:33:13Z Indexed on 2013/10/25 15:54 UTC
Read the original article Hit count: 121

Filed under:
|
|
|

I would like to split my strings in JAVA based on a regular interval, not on regex. This is what I have to split:

  1 x3.1.105.41                           1                    -10
  2 x4.1.105.41                           0                    -10
  3 x12.1.105.41                          0                    -10
  4 y3.1.105.41.19                        1                      0
  5 y4.1.105.41.21                        0                      0
  6 y1.1.105.41.23                        0                      0
  7 y12.1.105.41.25                       0                      0

I would like to seperate each column. Currently, I use the strLine.spli function

Any help would be great!

© Stack Overflow or respective owner

Related posts about java

Related posts about regex