-
-
Save tbuehlmann/5454083 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class PrintX { | |
public void print(String input, int i) { | |
for(int j=1; j<=i; j++) { | |
System.out.println(input); | |
} | |
} | |
public static void main(String[] args) { | |
PrintX p = new PrintX(); | |
p.print("foo", 3); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment