fixed multiple bugs & updated cicd workflows
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user