Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.maverik.foo;
- public class maverikObj {
- private String address;
- private String city;
- private String state;
- private String phone;
- private double unleadedGas;
- private double blend87Gas;
- private double blend88Gas;
- private double blend89Gas;
- private double blend90Gas;
- private double premiumGas;
- private double dieselGas;
- public maverikObj(String address, String city, String state, String phone, double unleadedGas, double blend87Gas, double blend88Gas, double blend89Gas, double blend90Gas, double premiumGas, double dieselGas) {
- super();
- this.address = address;
- this.city = city;
- this.state = state;
- this.phone = phone;
- this.unleadedGas = unleadedGas;
- this.blend87Gas = blend87Gas;
- this.blend88Gas = blend88Gas;
- this.blend89Gas = blend89Gas;
- this.blend90Gas = blend90Gas;
- this.premiumGas = premiumGas;
- this.dieselGas = dieselGas;
- }
- public String getAddress() {
- return address;
- }
- public void setAddress(String address) {
- this.address = address;
- }
- public String getCity() {
- return city;
- }
- public void setCity(String city) {
- this.city = city;
- }
- public String getState() {
- return state;
- }
- public void setState(String state) {
- this.state = state;
- }
- public String getPhone() {
- return phone;
- }
- public void setPhone(String phone) {
- this.phone = phone;
- }
- public double getUnleadedGas() {
- return unleadedGas;
- }
- public void setUnleadedGas(double unleadedGas) {
- this.unleadedGas = unleadedGas;
- }
- public double getBlend87Gas() {
- return blend87Gas;
- }
- public void setBlend87Gas(double blend87Gas) {
- this.blend87Gas = blend87Gas;
- }
- public double getBlend88Gas() {
- return blend88Gas;
- }
- public void setBlend88Gas(double blend88Gas) {
- this.blend88Gas = blend88Gas;
- }
- public double getBlend89Gas() {
- return blend89Gas;
- }
- public void setBlend89Gas(double blend89Gas) {
- this.blend89Gas = blend89Gas;
- }
- public double getBlend90Gas() {
- return blend90Gas;
- }
- public void setBlend90Gas(double blend90Gas) {
- this.blend90Gas = blend90Gas;
- }
- public double getPremiumGas() {
- return premiumGas;
- }
- public void setPremiumGas(double premiumGas) {
- this.premiumGas = premiumGas;
- }
- public double getDieselGas() {
- return dieselGas;
- }
- public void setDieselGas(double dieselGas) {
- this.dieselGas = dieselGas;
- }
- @Override
- public String toString() {
- return address+" "+city+", "+state+" Phone: "+phone+" Unleaded: "+unleadedGas+" Blend 87: "+blend87Gas+" Blend 88: "+blend88Gas+" Blend 89: "+blend89Gas+" Blend 90: "+blend90Gas+" Premium: "+premiumGas+" Diesel: "+dieselGas;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement