- split your string on space to get
Loggingandv0.12.4 - remove (substring)
vfromv0.12.4 - split
0.12.4on dot (usesplit("\\.")since dot is special in regex) - you can also parse each
"0""12""4"to integer (Integer.parseIntcan be helpful).
4
solved Parsing String and Int in java