Kaynağa Gözat

Built the groundwork for the lab

Zach Marcin 7 yıl önce
ebeveyn
işleme
fe5f30d7ee

+ 2
- 0
.gitignore Dosyayı Görüntüle

@@ -0,0 +1,2 @@
1
+.idea/*
2
+*.iml

+ 20
- 0
pom.xml Dosyayı Görüntüle

@@ -0,0 +1,20 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<project xmlns="http://maven.apache.org/POM/4.0.0"
3
+         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4
+         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
5
+    <modelVersion>4.0.0</modelVersion>
6
+
7
+    <groupId>io.zipcoder</groupId>
8
+    <artifactId>collections</artifactId>
9
+    <version>1.0-SNAPSHOT</version>
10
+
11
+    <dependencies>
12
+        <dependency>
13
+            <groupId>junit</groupId>
14
+            <artifactId>junit</artifactId>
15
+            <version>4.12</version>
16
+            <scope>test</scope>
17
+        </dependency>
18
+    </dependencies>
19
+
20
+</project>

+ 4
- 0
src/main/java/io/zipcoder/ParenChecker.java Dosyayı Görüntüle

@@ -0,0 +1,4 @@
1
+package io.zipcoder;
2
+
3
+public class ParenChecker {
4
+}

+ 18
- 0
src/main/java/io/zipcoder/WC.java Dosyayı Görüntüle

@@ -0,0 +1,18 @@
1
+package io.zipcoder;
2
+
3
+import java.io.FileNotFoundException;
4
+import java.io.FileReader;
5
+import java.util.Scanner;
6
+
7
+public class WC {
8
+    private Scanner sc;
9
+
10
+    public WC(String fileName) {
11
+        try {
12
+            sc = new Scanner(new FileReader(fileName));
13
+        } catch (FileNotFoundException e) {
14
+            System.out.println(fileName + " Does Not Exist");
15
+            System.exit(-1);
16
+        }
17
+    }
18
+}

+ 8
- 0
src/test/java/io/zipcoder/ParenCheckerTest.java Dosyayı Görüntüle

@@ -0,0 +1,8 @@
1
+package io.zipcoder;
2
+
3
+import org.junit.Assert;
4
+import org.junit.Test;
5
+
6
+public class ParenCheckerTest {
7
+
8
+}

+ 8
- 0
src/test/java/io/zipcoder/WCTest.java Dosyayı Görüntüle

@@ -0,0 +1,8 @@
1
+package io.zipcoder;
2
+
3
+import org.junit.Assert;
4
+import org.junit.Test;
5
+
6
+public class WCTest {
7
+
8
+}