Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.example.demo;
- public class City {
- private Long id;
- private String name;
- private String country;
- public Long getId() {
- return this.id;
- }
- public void setId(Long id) {
- this.id = id;
- }
- public String getName() {
- return this.name;
- }
- public void setName(String name) {
- this.name = name;
- }
- public String getCountry() {
- return this.country;
- }
- public void setCountry(String country) {
- this.country = country;
- }
- @Override
- public String toString() {
- return getId() + "," + getName() + "," + getCountry();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement