0
我正在尋找一個庫,可以幫助我從字符串列表中打印目錄樹。如何從字符串列表中打印目錄樹?
列表
"https://stackoverflow.com/a/b/c/file1.txt"
"https://stackoverflow.com/a/b/c/file2.txt"
"https://stackoverflow.com/a/b/file3.jpg"
and so on...
我正在尋找一個庫,可以幫助我從字符串列表中打印目錄樹。如何從字符串列表中打印目錄樹?
列表
"https://stackoverflow.com/a/b/c/file1.txt"
"https://stackoverflow.com/a/b/c/file2.txt"
"https://stackoverflow.com/a/b/file3.jpg"
and so on...
您可以嘗試abego樹佈局。它給你一種顯示樹的方式。它似乎沒有很好的文件,但它運作良好。以下是如何使用它的鏈接。 https://code.google.com/p/treelayout/
您的問題的答案是[here](http://stackoverflow.com/questions/3154488/best-way-to-iterate-through-a--directory-in-java) – TheEYL 2014-12-07 16:55:02
這不完全是我的案件。因爲我想打印一個抽象文件樹。它在我的文件系統上不存在。 – barbara 2014-12-07 16:59:50
那麼,你的'抽象文件樹'存在哪種數據結構? – GreyBeardedGeek 2014-12-07 17:25:52