fixed multiple bugs & updated cicd workflows

This commit is contained in:
2021-11-15 11:59:27 +01:00
parent 5400798e9c
commit 1c4da28480
19 changed files with 205 additions and 123 deletions

View File

@@ -21,16 +21,18 @@ public class Executor extends ExecutorBase {
protected
String execution(String... input) {
System.out.println(input);
double result = Double.NaN;
int a = Integer.parseInt(input[0]);
int b = Integer.parseInt(input[2]);
String operation = input[1];
try {
TimeUnit.SECONDS.sleep(20);
} catch (InterruptedException e) {
e.printStackTrace();
}
// try {
// TimeUnit.SECONDS.sleep(20);
// } catch (InterruptedException e) {
// e.printStackTrace();
// }
if (operation == "+") {
result = a + b;
@@ -40,7 +42,9 @@ public class Executor extends ExecutorBase {
result = a - b;
}
System.out.println("finish");
return Double.toString(result);
}
}
}