This a realisation Travelling salesman problem in Java with Generic Algoritm.