1 line Java Solution
\nclass Solution {\n    public String convertToBase7(int num) {\n        return Integer.toString(Integer.parseInt(num+""),7);\n    }\n}\n
```\nclass Solution {\n    public String convertToBase7(int num) {\n        return Integer.toString(Integer.parseInt(num+""),7);\n    }\n}\n```
['Java']