nafis nibir 6 years ago
parent
commit
fdfa5889c3
4 changed files with 5420 additions and 1 deletions
  1. 12
    1
      pom.xml
  2. 22
    0
      src/main/java/HamletRegex.java
  3. 3
    0
      src/test/java/HamletParserTest.java
  4. 5383
    0
      target/classes/hamlet.txt

+ 12
- 1
pom.xml View File

@@ -3,7 +3,18 @@
3 3
          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4 4
          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
5 5
     <modelVersion>4.0.0</modelVersion>
6
-
6
+    <build>
7
+        <plugins>
8
+            <plugin>
9
+                <groupId>org.apache.maven.plugins</groupId>
10
+                <artifactId>maven-compiler-plugin</artifactId>
11
+                <configuration>
12
+                    <source>1.8</source>
13
+                    <target>1.8</target>
14
+                </configuration>
15
+            </plugin>
16
+        </plugins>
17
+    </build>
7 18
     <groupId>com.zipcodewilmington</groupId>
8 19
     <artifactId>regex</artifactId>
9 20
     <version>1.0-SNAPSHOT</version>

+ 22
- 0
src/main/java/HamletRegex.java View File

@@ -0,0 +1,22 @@
1
+public class HamletRegex {
2
+
3
+    public String hamletToLeon(String hamlet){
4
+
5
+        return hamlet;
6
+    }
7
+
8
+    public String horatioToTariq(String hamlet){
9
+
10
+        return null;
11
+    }
12
+
13
+    public boolean findHoratio(String hamlet){
14
+
15
+        return true;
16
+    }
17
+
18
+    public boolean findHamlet(String tariq){
19
+
20
+        return true;
21
+    }
22
+}

+ 3
- 0
src/test/java/HamletParserTest.java View File

@@ -15,6 +15,9 @@ public class HamletParserTest {
15 15
 
16 16
     @Test
17 17
     public void testChangeHamletToLeon() {
18
+        HamletRegex hammie = new HamletRegex();
19
+        System.out.println(hammie.hamletToLeon(hamletText));
20
+
18 21
     }
19 22
 
20 23
     @Test

+ 5383
- 0
target/classes/hamlet.txt
File diff suppressed because it is too large
View File