ソースを参照

filled out README

Kr Younger 6 年 前
コミット
952765c6c7
共有2 個のファイルを変更した89 個の追加88 個の削除を含む
  1. 89
    1
      README.md
  2. 0
    87
      codingSamples.md

+ 89
- 1
README.md ファイルの表示

@@ -1 +1,89 @@
1
-# More YeOldeCode
1
+# Old Texas Code
2
+
3
+# Java Coding Samples 
4
+
5
+Various Java programs to illustrate various concepts from an old CS course at UTexas.edu.
6
+
7
+*   A [Hello World!](CodeSamples/codeSamples/HelloWorld.java) Java program.
8
+    
9
+*   [Calling Methods](CodeSamples/codeSamples/CallingMethodsInSameClass.java). A sample of how to call methods in the same class.
10
+    
11
+*   [For loop](CodeSamples/codeSamples/Factorial.java). A simple example of using for loops to calculate factorial. Uses the built in int data type so only good to 13!
12
+    
13
+*   [Enhanced for loop](CodeSamples/codeSamples/EnhancedFor.java)
14
+    
15
+*   [Value Parameters](CodeSamples/codeSamples/PrimitiveParameters.java): An example that shows the behavior of value parameters. In Java all parameters are passed by value. 
16
+    
17
+*   [String Example](CodeSamples/codeSamples/StringExample.java). A few brief examples of String manipulations.
18
+    
19
+*   [BinaryConverter](CodeSamples/codeSamples/BinaryConverter.java). A program with examples of various Java syntax that converts a base 10 int to base 2 String.
20
+    
21
+*   [PrimeEx](CodeSamples/codeSamples/PrimeEx.java) A program with various approaches to determine if an int is prime or not. Used to demonstrate Java syntax. You need the [Stopwatch](CodeSamples/utilities/Stopwatch.java) class, a non standard Java class, as well.
22
+    
23
+*   [Pointers as Value parameters](CodeSamples/codeSamples/ObjectVarsAsParameters.java)
24
+    
25
+*   [Array Examples](CodeSamples/codeSamples/ArrayExamples.java)
26
+    
27
+*   [2D array Example](CodeSamples/codeSamples/FilterExample.java). A simplified version of filtering a picture represented by ints.
28
+    
29
+*   [2D array example](CodeSamples/codeSamples/Life.java). Very simple version of the Conway's Game of Life.
30
+    
31
+*   [Getting input from Keyboard with Scanner class](CodeSamples/codeSamples/ScannerAndKeyboard.java)
32
+    
33
+*   [Reading ints from file with Scanner class](CodeSamples/codeSamples/ReadAndPrintScores.java)
34
+    
35
+*   [Writing ints to file](CodeSamples/codeSamples/WriteToFile.java)
36
+    
37
+*   [Connecting to and reading from a web page.](CodeSamples/codeSamples/URLExpSimple.java)
38
+    
39
+*   [Program to create ASCII frequency table from file and url.](CodeSamples/codeSamples/FreqTableExampleOriginal.java) Demonstration of try / catch blocks. The CIA 2008 Factbook may be downloaded from [Project Gutenberg](http://www.gutenberg.org/cache/epub/29233/pg29233.txt).
40
+    
41
+*   [IntListVer1](CodeSamples/codeSamples/IntListVer1.java) First version of the IntList class developed in class. Developing class to illustrate various class design and implementation issues in Java.
42
+    
43
+*   [IntListTesterVer1](CodeSamples/codeSamples/IntListTesterVer1.java)
44
+    
45
+*   [IntListVer2](CodeSamples/codeSamples/IntListVer2.java) Added default add method, equals method, and toString methods. Includes versions of toString using String concatenation and StringBuffer to illustarte performance differences.
46
+    
47
+*   [IntListTesterVer2](CodeSamples/codeSamples/IntListTesterVer2.java)
48
+    
49
+*   [IntListVer3](CodeSamples/codeSamples/IntListVer3.java). Added insert and remove methods.
50
+    
51
+*   [SortedIntList](CodeSamples/codeSamples/SortedIntList.java). Inherits from InListVer3 to create a SortedIntList. Class is "broken" because random insertions still allowed.
52
+    
53
+*   [GenericList](CodeSamples/codeSamples/GenericList.java). Altered the list to store anything, not just ints.
54
+    
55
+*   [Die](CodeSamples/codeSamples/Die.java) class. A class that models a playing die.
56
+    
57
+*   [DemoClass](CodeSamples/codeSamples/DemoClass.java): This illustrates some of the more confusing concepts in class syntax and mechanics such as constructors, static vs. instance methods, and method overloading. 
58
+    
59
+*   [Stopwatch class](CodeSamples/utilities/Stopwatch.java). A class for measuring how long it takes for a program to run.
60
+    
61
+    *   [Documentation for Stopwatch class.](CodeSamples/utilities/Stopwatch.html)
62
+        
63
+*   [Create a Set](CodeSamples/codeSamples/CreateASet.java). A method that using polymorphism to create a set from an array.
64
+    
65
+*   [Recursion examples](CodeSamples/codeSamples/RecursionExampleDirectory.java). Includes examples on finding space taken up by files in a directory including all files in all subdirectories, recursive factorial, recursive power, recursive Fibonacci numbers, and a simple knapsack problem.
66
+    
67
+*   [Eight Queens example](CodeSamples/codeSamples/EightQueens.java). Code to find a a solution to an N queens problem. Note the queensAreSafe method has not been completed.
68
+    
69
+*   [Airlines example](CodeSamples/codeSamples/AirlineProblem.java). Determine if airlines can be moved from airline to another based on network of airline partners. Here is a [sample input file](CodeSamples/codeSamples/airlines.txt).
70
+    
71
+*   [Minesweeper](CodeSamples/codeSamples/MineSweeper.java). Another example of recursion from the game minesweeper.
72
+    
73
+*   [GenericListVersion2](CodeSamples/codeSamples/GenericListVersion2.java). Changed the GenericList class so that it implements the [Iterable](http://java.sun.com/javase/6/docs/api/java/lang/Iterable.html) interface in order to demonstrate how to implement an [iterator](http://java.sun.com/javase/6/docs/api/java/util/Iterator.html) using an inner class.
74
+    
75
+*   [GenericListVersion3](CodeSamples/GenericList.java). Changed GenericList so it is generic based on Java generics syntax instead of relying on Object.
76
+    
77
+*   [ListNode](CodeSamples/codeSamples/ListNode.java). A singly linked node class used to build linked lists
78
+    
79
+*   [IList](CodeSamples/LinkedList/IList.java). A simple list interface
80
+    
81
+*   [LinkedList](CodeSamples/codeSamples/LinkedList.java). Similar to the LinkedList developed in class. Does not contain all the methods you would expect of a LinkedList. Also implements the iterator remove method in O(N) time. An O(1) time remove method is possible.
82
+    
83
+*   [UnsortedHashSet](CodeSamples/codeSamples/UnsortedHashSet.java) \- An unsorted set that uses a hashtable with closed address hashing to store values. Currently only the add method is implemented.
84
+    
85
+*   [UnsortedSetTest](CodeSamples/codeSamples/UnsortedSetTest.java) - A method to compare Java's TreeSet and HashSet to the BianrySearchTree, UnsortedSet, and UnsortedHashSet classes developed in class. Note you need a lot of other files for this to work.
86
+    
87
+*   [SimpleWordCount](CodeSamples/codeSamples/SimpleWordCounter.java) \- Program demonstrating use of a map to count the frequency of words in a file.
88
+    
89
+*   [WordCount](https://www.cs.utexas.edu/~scottm/cs314/CodeSamples/CodingSamples/WordCount.java) \- Program  that compares counting words in files using an ArrayList and a Map.

+ 0
- 87
codingSamples.md ファイルの表示

@@ -1,87 +0,0 @@
1
-# Java Coding Samples 
2
-
3
-Various Java programs to illustrate various concepts from an old CS course at UTexas.edu.
4
-
5
-*   A [Hello World!](CodeSamples/codeSamples/HelloWorld.java) Java program.
6
-    
7
-*   [Calling Methods](CodeSamples/codeSamples/CallingMethodsInSameClass.java). A sample of how to call methods in the same class.
8
-    
9
-*   [For loop](CodeSamples/codeSamples/Factorial.java). A simple example of using for loops to calculate factorial. Uses the built in int data type so only good to 13!
10
-    
11
-*   [Enhanced for loop](CodeSamples/codeSamples/EnhancedFor.java)
12
-    
13
-*   [Value Parameters](CodeSamples/codeSamples/PrimitiveParameters.java): An example that shows the behavior of value parameters. In Java all parameters are passed by value. 
14
-    
15
-*   [String Example](CodeSamples/codeSamples/StringExample.java). A few brief examples of String manipulations.
16
-    
17
-*   [BinaryConverter](CodeSamples/codeSamples/BinaryConverter.java). A program with examples of various Java syntax that converts a base 10 int to base 2 String.
18
-    
19
-*   [PrimeEx](CodeSamples/codeSamples/PrimeEx.java) A program with various approaches to determine if an int is prime or not. Used to demonstrate Java syntax. You need the [Stopwatch](CodeSamples/utilities/Stopwatch.java) class, a non standard Java class, as well.
20
-    
21
-*   [Pointers as Value parameters](CodeSamples/codeSamples/ObjectVarsAsParameters.java)
22
-    
23
-*   [Array Examples](CodeSamples/codeSamples/ArrayExamples.java)
24
-    
25
-*   [2D array Example](CodeSamples/codeSamples/FilterExample.java). A simplified version of filtering a picture represented by ints.
26
-    
27
-*   [2D array example](CodeSamples/codeSamples/Life.java). Very simple version of the Conway's Game of Life.
28
-    
29
-*   [Getting input from Keyboard with Scanner class](CodeSamples/codeSamples/ScannerAndKeyboard.java)
30
-    
31
-*   [Reading ints from file with Scanner class](CodeSamples/codeSamples/ReadAndPrintScores.java)
32
-    
33
-*   [Writing ints to file](CodeSamples/codeSamples/WriteToFile.java)
34
-    
35
-*   [Connecting to and reading from a web page.](CodeSamples/codeSamples/URLExpSimple.java)
36
-    
37
-*   [Program to create ASCII frequency table from file and url.](CodeSamples/codeSamples/FreqTableExampleOriginal.java) Demonstration of try / catch blocks. The CIA 2008 Factbook may be downloaded from [Project Gutenberg](http://www.gutenberg.org/cache/epub/29233/pg29233.txt).
38
-    
39
-*   [IntListVer1](CodeSamples/codeSamples/IntListVer1.java) First version of the IntList class developed in class. Developing class to illustrate various class design and implementation issues in Java.
40
-    
41
-*   [IntListTesterVer1](CodeSamples/codeSamples/IntListTesterVer1.java)
42
-    
43
-*   [IntListVer2](CodeSamples/codeSamples/IntListVer2.java) Added default add method, equals method, and toString methods. Includes versions of toString using String concatenation and StringBuffer to illustarte performance differences.
44
-    
45
-*   [IntListTesterVer2](CodeSamples/codeSamples/IntListTesterVer2.java)
46
-    
47
-*   [IntListVer3](CodeSamples/codeSamples/IntListVer3.java). Added insert and remove methods.
48
-    
49
-*   [SortedIntList](CodeSamples/codeSamples/SortedIntList.java). Inherits from InListVer3 to create a SortedIntList. Class is "broken" because random insertions still allowed.
50
-    
51
-*   [GenericList](CodeSamples/codeSamples/GenericList.java). Altered the list to store anything, not just ints.
52
-    
53
-*   [Die](CodeSamples/codeSamples/Die.java) class. A class that models a playing die.
54
-    
55
-*   [DemoClass](CodeSamples/codeSamples/DemoClass.java): This illustrates some of the more confusing concepts in class syntax and mechanics such as constructors, static vs. instance methods, and method overloading. 
56
-    
57
-*   [Stopwatch class](CodeSamples/utilities/Stopwatch.java). A class for measuring how long it takes for a program to run.
58
-    
59
-    *   [Documentation for Stopwatch class.](CodeSamples/utilities/Stopwatch.html)
60
-        
61
-*   [Create a Set](CodeSamples/codeSamples/CreateASet.java). A method that using polymorphism to create a set from an array.
62
-    
63
-*   [Recursion examples](CodeSamples/codeSamples/RecursionExampleDirectory.java). Includes examples on finding space taken up by files in a directory including all files in all subdirectories, recursive factorial, recursive power, recursive Fibonacci numbers, and a simple knapsack problem.
64
-    
65
-*   [Eight Queens example](CodeSamples/codeSamples/EightQueens.java). Code to find a a solution to an N queens problem. Note the queensAreSafe method has not been completed.
66
-    
67
-*   [Airlines example](CodeSamples/codeSamples/AirlineProblem.java). Determine if airlines can be moved from airline to another based on network of airline partners. Here is a [sample input file](CodeSamples/codeSamples/airlines.txt).
68
-    
69
-*   [Minesweeper](CodeSamples/codeSamples/MineSweeper.java). Another example of recursion from the game minesweeper.
70
-    
71
-*   [GenericListVersion2](CodeSamples/codeSamples/GenericListVersion2.java). Changed the GenericList class so that it implements the [Iterable](http://java.sun.com/javase/6/docs/api/java/lang/Iterable.html) interface in order to demonstrate how to implement an [iterator](http://java.sun.com/javase/6/docs/api/java/util/Iterator.html) using an inner class.
72
-    
73
-*   [GenericListVersion3](CodeSamples/GenericList.java). Changed GenericList so it is generic based on Java generics syntax instead of relying on Object.
74
-    
75
-*   [ListNode](CodeSamples/codeSamples/ListNode.java). A singly linked node class used to build linked lists
76
-    
77
-*   [IList](CodeSamples/LinkedList/IList.java). A simple list interface
78
-    
79
-*   [LinkedList](CodeSamples/codeSamples/LinkedList.java). Similar to the LinkedList developed in class. Does not contain all the methods you would expect of a LinkedList. Also implements the iterator remove method in O(N) time. An O(1) time remove method is possible.
80
-    
81
-*   [UnsortedHashSet](CodeSamples/codeSamples/UnsortedHashSet.java) \- An unsorted set that uses a hashtable with closed address hashing to store values. Currently only the add method is implemented.
82
-    
83
-*   [UnsortedSetTest](CodeSamples/codeSamples/UnsortedSetTest.java) - A method to compare Java's TreeSet and HashSet to the BianrySearchTree, UnsortedSet, and UnsortedHashSet classes developed in class. Note you need a lot of other files for this to work.
84
-    
85
-*   [SimpleWordCount](CodeSamples/codeSamples/SimpleWordCounter.java) \- Program demonstrating use of a map to count the frequency of words in a file.
86
-    
87
-*   [WordCount](https://www.cs.utexas.edu/~scottm/cs314/CodeSamples/CodingSamples/WordCount.java) \- Program  that compares counting words in files using an ArrayList and a Map.