[Java Solution] One Line - 0ms
java []\nclass Solution {\n    public String convertToBase7(int num) {\n        return Integer.toString(num, 7);\n    }\n}\n
```java []\nclass Solution {\n    public String convertToBase7(int num) {\n        return Integer.toString(num, 7);\n    }\n}\n```
['Java']