How To Set Getters And Setters Method In java Using Eclipse?

1.First create a new class in your project.
2.Then set variables.
package com.Bean;

public class Services {
private int id;
private String services;
}
3.Right click inside the curly braces.

                                          select source and go to getters and setters method.



5.select all terms then click on generate.



6.Generate successfully.



Comments

Popular posts from this blog

Java Stack and Heap: Java Memory Allocation Lesson.

What is JVM, JDK and JRE in Java?