package de.codegym.task.task02.task0201; /* Methode ausdrucken implementieren */ public class Solution { public static void main(String[] args) { print("Java ist einfach zu erlernen!"); print("Java ist objektorientiert!"); print("Java ist plattformunabhängig!"); } public static void print(String s) { System.out.println(s); System.out.println(s); System.out.println(s); System.out.println(s); } } So my first question is how does the compiler know that strings are all the sentences that are preceded by print and the second question is why isn't it all output on one line but rather each sentence in its own because it's only one string?