Advertisement
mcnealk

3.1 #10

Sep 26th, 2014
185
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. public class Ten
  2. {
  3. public static void main (String[] args)
  4. {
  5. printStrings("abc", 5);
  6. }
  7. public static void printStrings(String x, int times)
  8. {
  9. for (int i=1; i<=times; i++)
  10. {
  11. System.out.print(x + " ");
  12. }
  13. }
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement