Commit 9bdb8c71 by Patryk Czarnik

pomnoz i podziel

parent e1180790
......@@ -9,4 +9,14 @@ public class PierwszySerwis {
return "Witaj " + imie;
}
// TODO napisz metodę, która wykonuje jakieś działanie matematyczne
// ciekawe będzie dzielenie int-ów (bo może być wyjątek dzielenia przez zero - nie zapobiegaj, chcemy zobaczyć, jak działają wyjątki w SOAP
public int pomnoz(int x, int y) {
return x * y;
}
public int podziel(int x, int y) {
return x / y;
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment