Use proper escaping: string.split("\\|"). Or, in Java 5+, use the helper Pattern.quote() which has been created for exactly this purpose:
確定! 回上一頁