Using Dijkstra From Online Source

http://www.algolist.com/code/java/Dijkstra's_algorithm is the source