How to Sum String int Value : I have String like = `24.5 km10.1 km30.9 km`. I want to sum it into double but I'm not able to sum it's value i'm getting exception "not a number" in my log d.

below is my code

 

    double sumValue=0.0;

          Log.d("my string is", stringValue);
            try {
                sumVaue=Double.parseDouble(s1);
                Log.d("distance there plus", String.valueOf(sumVaue));
            }catch (NumberFormatException e){
                System.out.println("not a number");
            }

