Skip to content

Instantly share code, notes, and snippets.

@kasundharmadasa
Last active December 3, 2018 16:23
Show Gist options
  • Save kasundharmadasa/8e99a878a7b690dc456f4ce6701a0c44 to your computer and use it in GitHub Desktop.
Save kasundharmadasa/8e99a878a7b690dc456f4ce6701a0c44 to your computer and use it in GitHub Desktop.
package com.sample.streams;
public class User {
private String firstName;
private String lastName;
private Integer age;
public User(String firstName, String lastName, Integer age) {
this.firstName = firstName;
this.lastName = lastName;
this.age = age;
}
public String getLastName() {
return lastName;
}
public void setLastName(String lastName) {
this.lastName = lastName;
}
public String getFirstName() {
return firstName;
}
public void setFirstName(String firstName) {
this.firstName = firstName;
}
public Integer getAge() {
return age;
}
public void setAge(Integer age) {
this.age = age;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment