java SimpleDateFormat 的parse(String text,Parse

这个方法到底是干嘛的?怎么用?

pos = new ParsePosition(8)

知道是解析时间,但是pos的作用是什么


德玛西亚99
浏览 559回答 1
1回答

呼如林

The method attempts to parse text starting at the index given by pos. 就是类似先把给的字符串从ParsePosition对象的index开始截取,然后对截取的字符串parse
打开App,查看更多内容
随时随地看视频慕课网APP

相关分类

Java