progs/catastrophic.java
changeset 616 96114cc02150
parent 558 c9da2c4586f2
equal deleted inserted replaced
615:52e9ab639c99 616:96114cc02150
    14 
    14 
    15 import java.util.regex.*;
    15 import java.util.regex.*;
    16 
    16 
    17 public class catastrophic {
    17 public class catastrophic {
    18     public static void main(String[] args) {
    18     public static void main(String[] args) {
    19 
    19 	
    20         //we always run all the tests twice -> to warmup of the JVM
    20         //we always run all the tests twice -> to warmup of the JVM
    21         for (int runs = 0; runs < 2; runs++) {
    21         for (int runs = 0; runs < 2; runs++) {
    22             
    22             
    23             Pattern pattern = Pattern.compile("(a*)*b");
    23             Pattern pattern = Pattern.compile("(a*)*b");
    24             
    24