直接拿去用:
package leetcode.editor.cn;
//${question.title}
//${question.content}
/**
* @author 改成自己的名字
* @date $!velocityTool.date()
*/
class P${question.frontendQuestionId}$!velocityTool.camelCaseName(${question.titleSlug}){
public static void main(String[] args) {
Solution solution = new P$!{question.frontendQuestionId}$!velocityTool.camelCaseName(${question.titleSlug})().new Solution();
// TODO Do what you want to do ↓
//solution.
}
${question.code}
}
效果图:
啊为什么是中文.java? 别问! 问就是任性,方便查找!