Skip to content

DemoAccount112/oop-lab1-java

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Java Calculator Project

Overview

This project implements a simple calculator with basic arithmetic operations: addition and subtraction.

Usage

Calculator Class

The Calculator class provides basic arithmetic operations:

package uz.autotest.java;

public class Calculator {

    /**
     * Adds two integers.
     * 
     * @param x the first integer
     * @param y the second integer
     * @return the sum of x and y
     */
    public int add(int x, int y) {
        return 0; // TODO: Implement this method
    }

    /**
     * Subtracts the second integer from the first integer.
     * 
     * @param x the first integer
     * @param y the second integer
     * @return the result of subtracting y from x
     */
    public int subtract(int x, int y) {
        return 0; // TODO: Implement this method
    }
}

Releases

No releases published

Packages

No packages published

Languages