Java Druck formatierte Zeichenfolge
int x = 21;
String y = "Sample text";
System.out.printf("%s | x = %d\n", y, x);
OwO People
int x = 21;
String y = "Sample text";
System.out.printf("%s | x = %d\n", y, x);
You Can Use System.out.printf("%d",n) also for formatting in java