質問するログイン新規登録

回答編集履歴

2

.

2018/05/14 04:38

投稿

gingertail
gingertail

スコア317

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

1

.

2018/05/14 04:38

投稿

gingertail
gingertail

スコア317

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;