@@ -0,0 +1,645 @@
+package com.javarush.task.task22.task2210;%0A%0Aimport java.util.StringTokenizer;%0A%0A/*%0AStringTokenizer%0A*/%0Apublic class Solution %7B%0A    public static void main(String%5B%5D args) %7B%0A        String%5B%5D strings = getTokens(%22Orange,Green,Yellow,Red%22,%22,%22);%0A%0A        for (String s : strings)%0A            System.out.println(s);%0A    %7D%0A%0A    public static String %5B%5D getTokens(String query, String delimiter) %7B%0A%0A        StringTokenizer st = new StringTokenizer(query, delimiter);%0A        String%5B%5D result = new String%5Bst.countTokens()%5D;%0A%0A        for (int i=0; st.hasMoreElements();i++) %7B%0A            result%5Bi%5D = st.nextToken();%0A        %7D%0A%0A        return result;%0A    %7D%0A%7D%0A

Task --> 2210