Skip to content

Commit 4befc1a

Browse files
committed
Update problem1.java
1 parent 605789b commit 4befc1a

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

problem1.java

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,3 +38,19 @@ public static Character naresh(String e)
3838
}
3939

4040

41+
/**
42+
* Solution by Akila J, CSE
43+
*/
44+
45+
import java.io.*;
46+
public class RegexTestStrings
47+
{
48+
public static final String EXAMPLE_TEST = "This is my small example " + "string which I'm going to " + "use for pattern matching.";
49+
50+
public static void main(String[] args)
51+
{
52+
53+
System.out.println(EXAMPLE_TEST.matches("^b*[a-z][a-z][a-z]$"));
54+
}
55+
}
56+

0 commit comments

Comments
 (0)