@@ -0,0 +1,717 @@
+/**%0A * Given a string s consists of upper/lower-case alphabets and empty space characters ' ', %0A * return the length of last word in the string.%0A * If the last word does not exist, return 0.%0A */%0Apublic class Solution %7B%0A    public int lengthOfLastWord(String s) %7B%0A        if(s == null %7C%7C s.length() == 0)    return 0;%0A        int len = s.length();%0A        int p = len - 1, start = 0, end = 0;%0A        // get the end of a word%0A        while(p %3E= 0 && !Character.isAlphabetic(s.charAt(p)))%0A            p--;%0A        if(p %3C 0) return 0;%0A        end = p;%0A        // get the start of a word%0A        while(p %3E= 0 && Character.isAlphabetic(s.charAt(p)))%0A            p--;%0A        start = p;%0A        return end - start;%0A    %7D%0A%7D%0A

Create 058.java