Commit b7ae8061 by Patryk Czarnik

bloki stringowe

parent 7d5f8c75
package java17;
public class Blok {
public static void main(String[] args) {
System.out.println("Heja");
String a = "Normalny string";
String b = """
Blok
Druga linia tekstu.
Trzecia linia tekstu "cytowanego" i 'pojedynczo "cytowanego"'
Wcięcie
Brak wcięcia""";
System.out.println(a);
System.out.println(b);
Number n = Integer.valueOf(13);
if(n instanceof Integer i) {
System.out.println("Jestem Integer " + i);
} else if(n instanceof Long l) {
System.out.println("Jestem Long" + l);
}
}
}
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