Java Easy Solution
\npublic String convertToBase7(int num) {\n        int count = 0, res = 0;\n        while(num != 0)\n        {\n            int dig = num % 7;\n            res 
```\npublic String convertToBase7(int num) {\n        int count = 0, res = 0;\n        while(num != 0)\n        {\n            int dig = num % 7;\n            res += dig * (int)Math.pow(10, count);\n            count++;\n            num /= 7;\n        }\n        return Integer.toString(res);\n    }\n```
['Java']