A test java program for Algorithms-1