Skip to content
Snippets Groups Projects
Commit 4702de73 authored by Olav Finne Præsteng Larsen's avatar Olav Finne Præsteng Larsen
Browse files

Added Java Docs

parent 591e44b2
No related branches found
No related tags found
No related merge requests found
...@@ -71,6 +71,12 @@ public class CalculatorResource { ...@@ -71,6 +71,12 @@ public class CalculatorResource {
return number1 - number2; return number1 - number2;
} }
/**
* Method used to calculate a subtraction expression
* @param equation the equation to be calculated as a String
* @return the answer as an int
*/
private int multiplication(String equation){ private int multiplication(String equation){
String[] split = equation.split("[*]"); String[] split = equation.split("[*]");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment