Skip to content

Instantly share code, notes, and snippets.

@automationhacks
Created June 16, 2019 12:02
Show Gist options
  • Save automationhacks/870cbe3cbf91927ab46935a52ebc7bf6 to your computer and use it in GitHub Desktop.
Save automationhacks/870cbe3cbf91927ab46935a52ebc7bf6 to your computer and use it in GitHub Desktop.
Simple POJO in java for a Person
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