Advertisement
Guest User

Untitled

a guest
Mar 17th, 2013
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.62 KB | None | 0 0
  1. package com.maverik.foo;
  2.  
  3. public class maverikObj {
  4. private String address;
  5. private String city;
  6. private String state;
  7. private String phone;
  8. private double unleadedGas;
  9. private double blend87Gas;
  10. private double blend88Gas;
  11. private double blend89Gas;
  12. private double blend90Gas;
  13. private double premiumGas;
  14. private double dieselGas;
  15.  
  16. public maverikObj(String address, String city, String state, String phone, double unleadedGas, double blend87Gas, double blend88Gas, double blend89Gas, double blend90Gas, double premiumGas, double dieselGas) {
  17. super();
  18. this.address = address;
  19. this.city = city;
  20. this.state = state;
  21. this.phone = phone;
  22. this.unleadedGas = unleadedGas;
  23. this.blend87Gas = blend87Gas;
  24. this.blend88Gas = blend88Gas;
  25. this.blend89Gas = blend89Gas;
  26. this.blend90Gas = blend90Gas;
  27. this.premiumGas = premiumGas;
  28. this.dieselGas = dieselGas;
  29. }
  30.  
  31. public String getAddress() {
  32. return address;
  33. }
  34. public void setAddress(String address) {
  35. this.address = address;
  36. }
  37. public String getCity() {
  38. return city;
  39. }
  40. public void setCity(String city) {
  41. this.city = city;
  42. }
  43. public String getState() {
  44. return state;
  45. }
  46. public void setState(String state) {
  47. this.state = state;
  48. }
  49. public String getPhone() {
  50. return phone;
  51. }
  52. public void setPhone(String phone) {
  53. this.phone = phone;
  54. }
  55. public double getUnleadedGas() {
  56. return unleadedGas;
  57. }
  58. public void setUnleadedGas(double unleadedGas) {
  59. this.unleadedGas = unleadedGas;
  60. }
  61. public double getBlend87Gas() {
  62. return blend87Gas;
  63. }
  64. public void setBlend87Gas(double blend87Gas) {
  65. this.blend87Gas = blend87Gas;
  66. }
  67. public double getBlend88Gas() {
  68. return blend88Gas;
  69. }
  70. public void setBlend88Gas(double blend88Gas) {
  71. this.blend88Gas = blend88Gas;
  72. }
  73. public double getBlend89Gas() {
  74. return blend89Gas;
  75. }
  76. public void setBlend89Gas(double blend89Gas) {
  77. this.blend89Gas = blend89Gas;
  78. }
  79. public double getBlend90Gas() {
  80. return blend90Gas;
  81. }
  82. public void setBlend90Gas(double blend90Gas) {
  83. this.blend90Gas = blend90Gas;
  84. }
  85. public double getPremiumGas() {
  86. return premiumGas;
  87. }
  88. public void setPremiumGas(double premiumGas) {
  89. this.premiumGas = premiumGas;
  90. }
  91. public double getDieselGas() {
  92. return dieselGas;
  93. }
  94. public void setDieselGas(double dieselGas) {
  95. this.dieselGas = dieselGas;
  96. }
  97.  
  98. @Override
  99. public String toString() {
  100. return address+" "+city+", "+state+" Phone: "+phone+" Unleaded: "+unleadedGas+" Blend 87: "+blend87Gas+" Blend 88: "+blend88Gas+" Blend 89: "+blend89Gas+" Blend 90: "+blend90Gas+" Premium: "+premiumGas+" Diesel: "+dieselGas;
  101. }
  102. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement