How to automatically generate getters and setters in Android Studio

后端 未结 15 1251
太阳男子
太阳男子 2020-12-02 04:15

Is there a shortcut in Android Studio for automatically generating the getters and setters in a given class?

15条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-02 04:59

    use code=>generate=>getter() and setter() dialog ,select all the variables ,generate all the getter(),setter() methods at one time.

提交回复
热议问题