IDEA/Eclipse添加構造函數 Get/Set方法 toString方法快捷鍵

1、IntelliJ IDEA 首先你要建立私有屬性,好比private String name;而後使用快捷鍵「alt+insert」,就出來Generate菜單了,你能夠選擇Constructor(構造函數),Getter and Setter方法,equals()方法,toString()方法等。函數     記住哦!快捷鍵爲:alt+insertspa 2、Eclipse     記住哦!
相關文章
相關標籤/搜索