All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.greenpepper.samples.application.calculator.Calculator Maven / Gradle / Ivy

There is a newer version: 4.2.4
Show newest version
/**
 * $Archive: $
 *
 * Copyright 2005 (C) Pyxis Technologies Inc.
 * All Rights Reserved.
 *
 * This software is the confidential and proprietary information of
 * Pyxis Technologies inc. ("Confidential Information"). You shall not
 * disclose such Confidential Information and shall use it only in
 * accordance with the terms of the license agreement you entered into
 * with Pyxis Technologies.
 *
 * http://www.pyxis-tech.com
 */
package com.greenpepper.samples.application.calculator;

/**
 * Demo SUT Application.
 *
 * @author oaouattara
 * @version $Id: $Id
 */
public class Calculator
{
    private int x;
	private int y;

	/**
	 * 

Getter for the field x.

* * @return a int. */ public int getX() { return x; } /** *

Setter for the field x.

* * @param x a int. */ public void setX(int x) { this.x = x; } /** *

Getter for the field y.

* * @return a int. */ public int getY() { return y; } /** *

Setter for the field y.

* * @param y a int. */ public void setY(int y) { this.y = y; } /** *

sum.

* * @return a int. */ public int sum() { return x + y; } /** *

difference.

* * @return a int. */ public int difference() { return x - y; } /** *

product.

* * @return a int. */ public int product() { return x * y; } /** *

quotient.

* * @return a int. */ public int quotient() { return x / y; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy