@@ -0,0 +1,181 @@
+public class _434_Number_of_Segments_in_a_String.java%7B%0A    public int countSegments(String s) %7B%0A        s = s.trim();%0A        return s.matches(%22 *%22)?0:s.split(%22 +%22).length;%0A    %7D%0A%7D%0A

Create _434_Number_of_Segments_in_a_String.java