Newer
Older
labs / tiddlers / content / labs / lab02 / _Labs_02_Create the Calculator Class.md

Create a new class named Calculator using <

New File > Java > Java Class">>.

Add the following two methods to the class:

public Integer add(Integer x, Integer y) {
    return x + y;
}

public Integer multiply(Integer x, Integer y) {
    return x * y;
}