Commit 0a6a295f by Patryk Czarnik

usuwam klasy "eksperyment"

parent 1d912239
package eksperyment;
public class NowaSkladnia {
public static void main(String[] args) {
// Java 14: switch ze strzałkami
int x = 10;
switch(x) {
case 5 -> System.out.println("pięć");
case 10 -> System.out.println("dziesięć");
}
}
}
package eksperyment;
public class NoweMetody {
public static void main(String[] args) {
String s = "%s ma %d %s".formatted("Ala", 9, "kotów");
System.out.println(s);
}
}
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