private List<String> mysplit(String input) {
// TODO Auto-generated method stub
List<String> output=new ArrayList();
String temp = "";
for(int i=0;i<input.length();i++){
if(input.toCharArray()[i]!='\\' )
temp+=input.toCharArray()[i];
else{
output.add(temp);
temp = "";
}
}
output.add(temp);
return output;
}
沒有留言:
張貼留言