Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class main {
- public static void main(String[] a) {
- String s = "print me";
- print(s, 20);
- }
- public static void print(String str, int numberOfTimes) {
- for(int i = 0; i < numberOfTimes; i++) {
- System.out.println(str);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement