Question: Write your solution in HistoPrint.java When you are finished, submit the file HistoPrint.java IMPORTANT: Double check that you have submitted the correct file. this is

Write your solution in HistoPrint.java When you are finished, submit the file HistoPrint.java IMPORTANT: Double check that you have submitted the correct file. this is part of the assignment. This method print a simple graph based on user-provided data. Write a complete Java program with the following methods: A method that takes no parameters and returns a String. Request this String from the user, it is the title of the graph. A method that takes no parameters and returns an ArrayList of Integers. Ask the user to enter a list of integers, they can enter as many integers as they like. The method returns these in the ArrayList. A method that takes a String (the graph title) and an ArrayList of Integers as parameters. This method prints the title and a graph to the command line using the ArrayList of Integers as data. Each value in the ArrayList is the number of stars to print on that line. Each element in the ArrayList is a separate line in the graph. See the example below. The user enters My Graph as the title The user enters: 3, 5, 6, 2 as the data The app outputs the following: My Graph *** ***** ****** ** Call all three methods from the main method using appropriate parameter passing.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!