1ms java easy
``` \npublic String strWithout3a3b(int a, int b) {\n\t\t//\u53BB\u6389\u591A\u4F59\n        StringBuilder sb = new StringBuilder();\n        while(a > 0 && b > 
``` \npublic String strWithout3a3b(int a, int b) {\n\t\t//\u53BB\u6389\u591A\u4F59\n        StringBuilder sb = new StringBuilder();\n        while(a > 0 && b > 0){\n            if(a > b){\n                a -= 2;\n                b--;\n                sb.append("aab");\n            }else if(a == b){\n                a--;\n                b--;\n                sb.append("ab");\n            }else if(a < b){\n                a--;\n                b -= 2;\n                sb.append("bba");\n            }\n        }\n        // \u5BF9\u5355\u4E2A\u8FDB\u884C\u78BE\u538B\n        while(a > 0){\n            a--;\n            sb.append("a");\n        }\n        while(b > 0){\n            b--;\n            sb.append("b");\n        }\n        return new String(sb);\n    }
['String', 'Java']