1. Overview In Java, [tryParse] is not supported like c#. When String text is not number, Integer.parseInt() or Float.parseFloat() don't return false but throw exception. So developer have to make this function. One way is using Regular-Expression. 2. Code Below code show Regular-Expression of getting number from String. String text = text_field.getText(); Pattern p = Pattern.compile("-?([\\d]+)..
Java, Number Regular-Expression
게임을 만들자/Java 2014. 9. 27. 00:06