@@ -0,0 +1,938 @@
+public class Solution %7B%0A    public String simplifyPath(String path) %7B%0A        LinkedList %3CString%3E pathItems = new LinkedList %3C%3E ();%0A        %0A        String allItems %5B%5D = path.split(%22/%22);%0A        for(String s: allItems) %7B%0A            switch(s) %7B%0A                case %22..%22:%0A                    if(!pathItems.isEmpty()) %7B%0A                        pathItems.removeLast();%0A                    %7D%0A                    break;%0A                case %22.%22:%0A                case %22%22:%0A                    //ignore%0A                    break;%0A                default:%0A                    pathItems.addLast(s);%0A            %7D%0A        %7D%0A        %0A        if(pathItems.isEmpty()) %7B%0A            return %22/%22;%0A        %7D%0A        %0A        StringBuilder retPath = new StringBuilder();%0A        while(!pathItems.isEmpty())%7B%0A            retPath.append(%22/%22);%0A            retPath.append(pathItems.removeFirst());%0A        %7D%0A        %0A        return retPath.toString();%0A    %7D%0A%7D%0A

Create Simplify_Path.java