Here is my program code. Why is my bar chart printing three times when I run the program?
import java.util.Scanner; public class BarChart {