生成getter方法与setter方法

选择File->Settings菜单。依次展开Editor和Code Style选项,在Naming表单的Field一行中,添加m作为前缀。然后添加s作为Static field的前缀。


然后回到Question.java中,右击构造方法后方区域,选择Generate...->Getter and Setter菜单选项。


猜你喜欢

转载自blog.csdn.net/aiwwy/article/details/80754647
今日推荐