Skip to content
Snippets Groups Projects
Commit 4ffdac4d authored by Henrik August Burmann's avatar Henrik August Burmann
Browse files

Some doc added to check pipelines

parent 2ffc5ca1
No related branches found
No related tags found
No related merge requests found
......@@ -18,7 +18,7 @@ public class Database {
private static boolean isTest = isJUnitTest();
private static final String IP_TO_VM = "129.241.96.191";
private static final String IP_TO_VM = "129.241.97.157";
private static String DB_URL = "jdbc:mysql://" + ((DB_CHOICE != null) ?
(DB_CHOICE + ":3306/") :
......
package resources;
import javax.ws.rs.Consumes;
import javax.ws.rs.POST;
import javax.ws.rs.Path;
......@@ -13,7 +12,6 @@ import javax.ws.rs.core.MediaType;
*/
@Path("/calculator")
public class CalculatorResource {
/**
* Method handling HTTP POST requests. The calculated answer to the expression will be sent to the client as
* plain/text.
......@@ -48,7 +46,7 @@ public int calculate(String expression) {
return result;
}
//Multiplication
public int multiplication(String equation) {
String[] split = equation.split("[*]");
int sum = Integer.parseInt(split[0]);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment