summaryrefslogtreecommitdiffstats
path: root/Master/Reference Architectures and Patterns/hjp5/examples/ProfTest1B.java
blob: 98b068ec0f30b7a187afdb818b8e09b6c93a242c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/* ProfTest1B.java */

import java.util.*;

public class ProfTest1B
{
  public static String dots(int len)
  {
    StringBuilder sb = new StringBuilder(len + 10);
    for (int i = 0; i < len; ++i) {
      sb.append('.');
    }
    return sb.toString();
  }

  public static void main(String[] args)
  {
    String s = dots(10000);
    System.out.println(s); 
  }
}