substring(beginIndex)的問題
// 獲取文件的后綴
String prefix =fileName.substring(index+1,fileName.length());
為什么不用String prefix =fileName.substring(index+1);?不是說substring(beginIndex)是從beginIndex位置開始到結(jié)束嗎?
? ? ? ??
// 獲取文件的后綴
String prefix =fileName.substring(index+1,fileName.length());
為什么不用String prefix =fileName.substring(index+1);?不是說substring(beginIndex)是從beginIndex位置開始到結(jié)束嗎?
? ? ? ??
2016-05-25
舉報(bào)
2016-05-25
可以的
2016-05-25
都是可以的,看個人喜好。