String prefix = fileName.substring(index+1,fileName.length());為什么要加",fileNmae.length()"?Java入門第三季2-3課程中介紹說,String substring(ing beginIndex)方法用作獲取從beginIndex位置開始到結束的子字符串那為什么還要費勁加上",fileNmae.length()",原用法不就是直接截取到字符串結束位置?
添加回答
舉報
0/150
提交
取消