1:把System.out.println输出到文件中
import java.io.File;
import java.io.FileOutputStream;
import java.io.PrintStream;
try{
File test = new File("test.txt");
PrintStream out = new PrintStream(new FileOutputStream(test));
System.setOut(out);
System.out.println( "└── " : "├── ")
}catch(Exception e){}
2:用正则表达式删除字符串的开头部分:
Pattern pattern0 = Pattern.compile("^.*?http");
Matcher matcher0 = pattern0.matcher(url.get(i));
tempStr = matcher0.replaceAll("http");
3.多叉树的生成规则还是没有弄明白。。。。