回答編集履歴
2
.
answer
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
```java
|
2
|
-
private static boolean
|
2
|
+
private static boolean checkDouble(String str) {
|
3
3
|
/*double dummy =*/ Double.parseDouble(str);
|
4
4
|
return true;
|
5
5
|
} catch (NumberFormatException e) {
|
1
.
answer
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
```java
|
2
2
|
private static boolean check(String str) {
|
3
|
-
double dummy = Double.parseDouble(str);
|
3
|
+
/*double dummy =*/ Double.parseDouble(str);
|
4
4
|
return true;
|
5
5
|
} catch (NumberFormatException e) {
|
6
6
|
return false;
|