my String is name="D:\\Tool\\BondTable\\New_Table.csv"; I want to split it by "\\".
my code is
String [] output = name.replaceAll("\\",",").split(",");
I am getting below error-
Exception in thread "main" java.util.regex.PatternSyntaxException: Unexpected internal error near index 1
Aucun commentaire:
Enregistrer un commentaire