simple JAVA 100% FAST Intuitive
\nclass Solution {\n    public String[] divideString(String s, int k, char fill) {\n        List<String> ls=new ArrayList<>();\n        for(int i=0;i<s.length()
```\nclass Solution {\n    public String[] divideString(String s, int k, char fill) {\n        List<String> ls=new ArrayList<>();\n        for(int i=0;i<s.length();i+=k){\n            if(i+k>=s.length()){\n                StringBuilder sub=new StringBuilder(s.substring(i,s.length()));\n                while(sub.length()<k)\n                    sub=sub.append(fill);\n                ls.add(sub.toString());\n            }else\n                ls.add(s.substring(i,i+k));\n        }\n        \n        return ls.toArray(new String[ls.size()]);\n    }\n}\n```
['Java']