8 *
9 * This code is distributed in the hope that it will be useful, but WITHOUT
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 * version 2 for more details (a copy is included in the LICENSE file that
13 * accompanied this code).
14 *
15 * You should have received a copy of the GNU General Public License version
16 * 2 along with this work; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 *
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any
21 * questions.
22 */
23
24 /**
25 * @test
26 * @bug 4152868
27 * @summary test Case Insensitive Comparator in String
28 */
29
30 import java.util.*;
31
32 public class ICCBasher {
33
34 static final int TEST_SIZE = 20;
35 static final int STRING_SIZE = 5;
36 static final int CHAR_VALUE_LIMIT = 128;
37
38 public static void main(String[] args) throws Exception {
39 LinkedList L1 = new LinkedList();
40 LinkedList L2 = new LinkedList();
41 LinkedList L3 = new LinkedList();
42 LinkedList L4 = new LinkedList();
43
44 // First generate L1 and L2 with random lower case chars
45 //System.out.println("Generate L1 and L2");
46 Random generator = new Random();
47 int achar=0;
|
8 *
9 * This code is distributed in the hope that it will be useful, but WITHOUT
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 * version 2 for more details (a copy is included in the LICENSE file that
13 * accompanied this code).
14 *
15 * You should have received a copy of the GNU General Public License version
16 * 2 along with this work; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 *
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any
21 * questions.
22 */
23
24 /**
25 * @test
26 * @bug 4152868
27 * @summary test Case Insensitive Comparator in String
28 * @key randomness
29 */
30
31 import java.util.*;
32
33 public class ICCBasher {
34
35 static final int TEST_SIZE = 20;
36 static final int STRING_SIZE = 5;
37 static final int CHAR_VALUE_LIMIT = 128;
38
39 public static void main(String[] args) throws Exception {
40 LinkedList L1 = new LinkedList();
41 LinkedList L2 = new LinkedList();
42 LinkedList L3 = new LinkedList();
43 LinkedList L4 = new LinkedList();
44
45 // First generate L1 and L2 with random lower case chars
46 //System.out.println("Generate L1 and L2");
47 Random generator = new Random();
48 int achar=0;
|