Free use on study purpose.
Stark Shaw
Be advised, the text file shall be stored 2 copies at the root folder of TSP and also TSP/out/production/TSP.
- TextFileReading.java - Text file reading test program.
- DistanceCal.java - Calculate the distance based on their coordinates.
- map.html - Test the Google Maps API.
Note that in this folder you could learn how to deal with command argument and parse them to the program.
- IndexOfPrime.java - The code could print out the certain prime number with given index. Note that this code was modified to accept command argument. Run
java IndexOfPrime 100is same as input 100 when the program prompt without any argument. - Solution.java - This could could print out a list of prime numbers from 2 to a certain number. Note that this code was modified to accept command argument. Run
java Solution 100is same as input 100 when the program prompt without any argument.
See the command help information, complie and run java Fibonacci -help in Command Prompt or Terminal. This package includes the method of creating a parameter-supported java program and exception handle statement.
- Fibonacci.java - The main class.
Also find C# version at here.
- Huffman.java - The main program.
- Node.java - The node class.
- Tree.java - The tree class.