Java NumberFormatException in SimpleDateFormat.getDateInstance()
问题 I can't understand the reason of NumberFormatException in this code: SimpleDateFormat format = (SimpleDateFormat) SimpleDateFormat.getDateInstance(); Below is my LogCat output: 10-30 18:04:05.600: W/System.err(23899): java.lang.NumberFormatException: Invalid int: "" 10-30 18:04:05.600: W/System.err(23899): at java.lang.Integer.invalidInt(Integer.java:138) 10-30 18:04:05.600: W/System.err(23899): at java.lang.Integer.parseInt(Integer.java:359) 10-30 18:04:05.600: W/System.err(23899): at java