Created
April 24, 2013 17:43
-
-
Save anonymous/5454033 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 | |
{ | |
//variables | |
int times; | |
String output; | |
//constructor is without parameters | |
//methods | |
public void print(String input, int i) | |
{ | |
output=input; | |
times=i; | |
for(int j=1; j<=times; j++) | |
{ | |
System.out.println(output); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment