Question: A Koch star is formed starting with an equilateral triangle and then recursively altering each line segment as follows:
1. divide the line segment into three segments of equal length.
2. draw an equilateral triangle that has the middle segment from step 1 as its base and points outward.
3. remove the line segment that is the base of the triangle from step 2. The first three iterations of this procedure are shown in Figure. Write a Java program to draw a Koch star.