If you are using IntelliJ as your IDE, you can do this: right click the public attribute -> refactor -> encapsulate fields.
確定! 回上一頁