Skip to content

Instantly share code, notes, and snippets.

@tbuehlmann
Forked from anonymous/PrintX.java
Last active December 16, 2015 15:09
Show Gist options
  • Save tbuehlmann/5454083 to your computer and use it in GitHub Desktop.
Save tbuehlmann/5454083 to your computer and use it in GitHub Desktop.
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