I was able to do this quickly but don't understand the why behind this. Why is it that it is able to print both words on line 16 and 17 when I only printed one string?
Does that one string= "window" AND "file"?
package com.codegym.task.task02.task0219;
/*
Print three times
*/
public class Solution {
public static void print3(String s) {
System.out.println(s);
System.out.println(s);
System.out.println(s);
}
public static void main(String[] args) {
print3("window");
print3("file");
}
}