package com.codegym.task.task02.task0219;
public class Solution {
public static void print3(String s) {
System.out.print(s + " " + s + " " + s + " ");
}
public static void main(String[] args) {
print3("window");
print3("file");
}
}
Why does my screen display it like this?
window window window file file file
I call print3 3 times!
Should display like this:
window file window
Be good, explain, otherwise it will be difficult to move on