2016-11-14 09:45:01 +01:00
|
|
|
package com.baeldung;
|
|
|
|
|
|
|
|
|
|
public final class StringUtils {
|
|
|
|
|
|
2017-08-24 15:30:33 +03:00
|
|
|
public static Double convertToDouble(String str) {
|
|
|
|
|
if (str == null) {
|
|
|
|
|
return null;
|
|
|
|
|
}
|
|
|
|
|
return Double.valueOf(str);
|
|
|
|
|
}
|
2016-11-14 09:45:01 +01:00
|
|
|
}
|