Created
June 16, 2019 12:02
-
-
Save automationhacks/870cbe3cbf91927ab46935a52ebc7bf6 to your computer and use it in GitHub Desktop.
Simple POJO in java for a Person
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package _01_bean; | |
public class Person { | |
private final String name; | |
private final Integer age; | |
public Person(String name, Integer age) { | |
this.name = name; | |
this.age = age; | |
} | |
public String getName() { | |
return name; | |
} | |
public Integer getAge() { | |
return age; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment