Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Scanner;
- public class Calc
- {
- public static void main(String[] args){
- }
- private double num1;
- private double num2;
- private double power;
- Scanner in = new Scanner(System.in);
- public Calc(double num1, double num2, double power) {
- this.num1 = 0;
- this.num2 = 0;
- this.power = 1;
- }
- public double getNum1() {
- return num1;
- }
- public void setNum1(double num1) {
- this.num1 = num1;
- }
- public double getNum2() {
- return num2;
- }
- public void setNum2(double num2) {
- this.num2 = num2;
- }
- public double getPower() {
- return power;
- }
- public void setPower(double power) {
- this.power = power;
- }
- public Scanner getIn() {
- return in;
- }
- public void setIn(Scanner in) {
- this.in = in;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement