I cant get it right.
import java.util.Scanner;
public class BarChart2 {
publicstaticvoidmain(String[] args) {
Scanner input =newScanner(System.in);
int artPoints;
int bobPoints;
int calPoints;
int danPoints;
int eliPoints;
finalint AMT_EACH_ASTERISK =10;
System.out.println("Enterpoints earned for the season");
System.out.print(" by Art >> ");
artPoints = input.nextInt();
System.out.print(" by Bob >> ");
bobPoints = input.nextInt();
System.out.print(" by Cal >> ");
calPoints = input.nextInt();
System.out.print(" by Dan >> ");
danPoints = input.nextInt();
System.out.print(" by Eli >> ");
eliPoints = input.nextInt();
System.out.println("\nPoints for Season (each asterisk represents " + AMT_EACH_ASTERISK + " points)\n");
drawChart("Art", artPoints,AMT_EACH_ASTERISK);
drawChart("Bob", bobPoints,AMT_EACH_ASTERISK);
drawChart("Cal", calPoints,AMT_EACH_ASTERISK);
drawChart("Dan", danPoints,AMT_EACH_ASTERISK);
drawChart("Eli", eliPoints,AMT_EACH_ASTERISK);
}
publicstaticvoiddrawChart(Stringname,intpoints,intamt_each) {
System.out.print(name + ": ");
for (int i =1; i <= points;="" i="" +="amt_each)">=>
System.out.print("*");
}
System.out.println();
}
}