以下の内容はhttps://anton0825.hatenablog.com/entry/2015/10/23/000000より取得しました。


文字列をBigDecimalやInteger等に変換出来るかどうかを判定する

以下のように例外をキャッチして判定するしかないっぽい。tryParse的なメソッドがあるのかと思ったけど。。無いならしょうがない。

try {  
    new BigDecimal("some string"); // This do nothing because the instance is ignored  
} catch (NumberFormatException e) {  
    return false; // OK, the string wasn't a well-formed decimal  
}  
return true;

参考:




以上の内容はhttps://anton0825.hatenablog.com/entry/2015/10/23/000000より取得しました。
このページはhttp://font.textar.tv/のウェブフォントを使用してます

不具合報告/要望等はこちらへお願いします。
モバイルやる夫Viewer Ver0.14