[問題] java.util.regex.Pattern
http://ppt.cc/ZbBl
24:
int number=Integer.parseInt(Pattern.compile("\\d*").matcher(capacity).group());
請問為什麼每次到了第24行就會拋出IllegalStateException?
剛剛把這行分開來寫 結果更奇怪了
Pattern pattern=Pattern.compile("\\d*"); //在這行就拋出IllegalStateException
有人知道是發生什麼事嗎@@
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 123.99.36.152
→
10/29 13:39, , 1F
10/29 13:39, 1F
→
10/29 13:50, , 2F
10/29 13:50, 2F
→
10/29 13:54, , 3F
10/29 13:54, 3F
→
10/29 19:55, , 4F
10/29 19:55, 4F
討論串 (同標題文章)
以下文章回應了本文 (最舊先):
完整討論串 (本文為第 1 之 3 篇):