Advertisement
Guest User

Calc.java

a guest
Sep 28th, 2013
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.96 KB | None | 0 0
  1.  
  2. import java.util.Scanner;
  3.  
  4. public class Calc
  5. {
  6. public static void main(String[] args){
  7.  
  8. }
  9.  
  10. private double num1;
  11. private double num2;
  12. private double power;
  13.  
  14. Scanner in = new Scanner(System.in);
  15.  
  16. public Calc(double num1, double num2, double power) {
  17. this.num1 = 0;
  18. this.num2 = 0;
  19. this.power = 1;
  20. }
  21.  
  22. public double getNum1() {
  23. return num1;
  24. }
  25.  
  26. public void setNum1(double num1) {
  27. this.num1 = num1;
  28. }
  29.  
  30. public double getNum2() {
  31. return num2;
  32. }
  33.  
  34. public void setNum2(double num2) {
  35. this.num2 = num2;
  36. }
  37.  
  38. public double getPower() {
  39. return power;
  40. }
  41.  
  42. public void setPower(double power) {
  43. this.power = power;
  44. }
  45.  
  46. public Scanner getIn() {
  47. return in;
  48. }
  49.  
  50. public void setIn(Scanner in) {
  51. this.in = in;
  52. }
  53.  
  54.  
  55.  
  56.  
  57. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement