Task 3 - Analysis

This commit is contained in:
Rémi Heredero 2023-11-08 10:21:45 +01:00
parent 5fb6c3d0cc
commit cb6a59468d
3 changed files with 0 additions and 7 deletions

BIN
Calculator.pcapng Normal file

Binary file not shown.

BIN
Error.pcapng Normal file

Binary file not shown.

View File

@ -44,13 +44,6 @@ public class CalculatorClient {
public static void main(String[] args) {
CalculatorClient client = new CalculatorClient("calc.sdi.hevs.ch", 80);
for(int i = 0; i<10; i++) {
String expression = String.valueOf(i) + "+" + String.valueOf(i);
System.out.println("Expression: " + expression);
double answer = client.calculate(expression);
System.out.println("Answer: " + answer);
}
String expression = "1-a";
System.out.println("Expression: " + expression);
double answer = client.calculate(expression);