Implementation of two more methods for String - yet many are missing to make StringBuilder work
1 package org.apidesign.vm4brwsr;
5 * @author Jaroslav Tulach <jtulach@netbeans.org>
7 public class StringSample {
8 public static final String HELLO = "Hello World!";
9 private static int counter;
11 private final int cnt;
12 public StringSample() {
17 public static char sayHello(int indx) {
18 return HELLO.charAt(indx);
21 public static String toStringTest(int howMuch) {
22 StringSample ss = null;
23 for (int i = 0; i < howMuch; i++) {
24 ss = new StringSample();
30 public String toString() {