A java program for circuit building.