my java solution w/o string helper
\npublic class Solution {\n    public String convertToBase7(int num) {\n        int base = 1, result = 0;\n        while (num != 0) {\n            result += bas
```\npublic class Solution {\n    public String convertToBase7(int num) {\n        int base = 1, result = 0;\n        while (num != 0) {\n            result += base * (num % 7);\n            num /= 7;\n            base *= 10;\n        }\n        return String.valueOf(result);\n    }\n}\n```
[]