[java] Modulo, String Manipulation, looping, List to Array
hmm\n\nclass Solution {\n    public String[] divideString(String s, int k, char fill) {\n        \n        int remaining =  s.length()%k;\n        if(remaining 
hmm\n```\nclass Solution {\n    public String[] divideString(String s, int k, char fill) {\n        \n        int remaining =  s.length()%k;\n        if(remaining != 0) s = s + (fill + "").repeat(k - remaining);\n        \n\n        List<String> list = new ArrayList<>();\n        for(int i = 0; i < s.length(); i+=k) {\n            list.add(s.substring(i,i+k));\n        }\n        \n        return list.toArray(new String[list.size()]);\n        \n        \n    }\n}\n```
['String']