Commit 3b8455c8 by Patryk Czarnik

niewiemco

parent 3726039a
...@@ -16,7 +16,7 @@ public class ProgramJednometodowy { ...@@ -16,7 +16,7 @@ public class ProgramJednometodowy {
int wynik = KalkulatorJednometodowy.oblicz(liczba1, liczba2, operacja); int wynik = KalkulatorJednometodowy.oblicz(liczba1, liczba2, operacja);
System.out.printf("%d %s %d = %d\n", liczba1, operacja, liczba2, wynik); System.out.printf("%d %s %d = %d\n", liczba1, operacja, liczba2, wynik);
} }
System.out.println("nara"); System.out.println("nara zakończyć");
} }
} }
...@@ -26,7 +26,11 @@ public class Duplikacja2 { ...@@ -26,7 +26,11 @@ public class Duplikacja2 {
} }
private static void wypiszTeksty() { private static void wypiszTeksty() {
System.out.println("Ala ma kota"); wypiszTeksty("Ala ma kota", "Ola ma psa");
System.out.println("Ola ma psa"); }
private static void wypiszTeksty(String txt1, String txt2) {
System.out.println(txt1);
System.out.println(txt2);
} }
} }
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