@@ -0,0 +1,670 @@
+public class LengthOfLastWord %7B%0A    public int lengthOfLastWord(String s) %7B%0A        s = s.trim();%0A        if (s.length() == 0) return 0;%0A        if (Character.toString(s.charAt(s.length() - 1)).equals (%22 %22)) return 0;%0A        int count = 0;%0A        for (int i = s.length() - 1; i %3E= 0; i--) %7B%0A            if (Character.toString(s.charAt(i)).equals (%22 %22)) break;%0A            count++;%0A        %7D%0A        return count;%0A    %7D%0A    %0A    public static void main (String%5B%5D args) %7B%0A        LengthOfLastWord test = new LengthOfLastWord ();%0A        System.out.println (test.lengthOfLastWord (%22 %22));%0A        System.out.println (Character.toString(%22 %22.charAt(0)).equals(%22 %22));%0A    %7D%0A%7D

Find length of last word