[Solved] Parsing String and Int in java


  • split your string on space to get Logging and v0.12.4
  • remove (substring) v from v0.12.4
  • split 0.12.4 on dot (use split("\\.") since dot is special in regex)
  • you can also parse each "0" "12" "4" to integer (Integer.parseInt can be helpful).

4

solved Parsing String and Int in java