爲什麼這段代碼會拋出異常?ReplaceAll java拋出異常
file = file.replaceAll(Pattern.quote("/"),File.separator);
Message: String index out of range: 1 File: null Class: java.lang.String Methode: charAt Line: -1 File: null Class: java.util.regex.Matcher Methode: appendReplacement Line: -1 File: null Class: java.util.regex.Matcher Methode: replaceAll Line: -1 File: null Class: java.lang.String Methode: replaceAll Line: -1
什麼是文件的價值? – reef 2011-04-01 15:46:01
這看起來不像標準的Java堆棧跟蹤。你在哪個平臺上? – 2011-04-01 15:46:06