Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Post {
- int userId;
- int id;
- String title;
- String body;
- public Post(int userId, int id, String title, String body) {
- this.userId = userId;
- this.id = id;
- this.title = title;
- this.body = body;
- }
- public int getUserId() {
- return userId;
- }
- public int getId() {
- return id;
- }
- public String getTitle() {
- return title;
- }
- public String getBody() {
- return body;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement