Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Ten
- {
- public static void main (String[] args)
- {
- printStrings("abc", 5);
- }
- public static void printStrings(String x, int times)
- {
- for (int i=1; i<=times; i++)
- {
- System.out.print(x + " ");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement