binibiningtinamoran

Country.java

May 6th, 2020
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.85 KB | None | 0 0
  1. public class Country {
  2.  
  3.     private String anger;
  4.     private int stretch;
  5.     private double film;
  6.  
  7.     public Country(String anger, int stretch, double film) {
  8.         this.anger = anger;
  9.         this.stretch = stretch;
  10.         this.film = film;
  11.     }
  12.  
  13.     public String getAnger() {
  14.         return anger;
  15.     }
  16.  
  17.     public void setAnger(String anger) {
  18.         this.anger = anger;
  19.     }
  20.  
  21.     public int getStretch() {
  22.         return stretch;
  23.     }
  24.  
  25.     public void setStretch(int stretch) {
  26.         this.stretch = stretch;
  27.     }
  28.  
  29.     public double getFilm() {
  30.         return film;
  31.     }
  32.  
  33.     public void setFilm(double film) {
  34.         this.film = film;
  35.     }
  36.  
  37.     @Override
  38.     public String toString() {
  39.         return "Anger: " + anger +
  40.                 "\nStretch: " + stretch +
  41.                 "\nFilm: " + film;
  42.     }
  43. }
Add Comment
Please, Sign In to add comment