I cannot figure out how to use the debugger, there is an issue with my for loop it will not do a few things. It keeps printing the 2 printf at the same time and then it will not let me add the values to the arrays. It will skip the first input line and then only let me enter in an int. I'm not sure where my mistake is and have been looking for some time.
import java.util.Scanner;
public class BarChart {
private int NumberOfValues;
private String [] valueName;
private int [] value;
private int currentMax;
public int counter;
public int i;
Scanner input = new Scanner(System.in);
public BarChart(String string) {
}
public void setValues()
{
System.out.println("How many sets of numbers would you like to enter?");
NumberOfValues = input.nextInt();
value = new int [NumberOfValues];
valueName = new String [NumberOfValues];
for (int i =0; i <value.length; i++);
{
System.out.printf("Please enter the name of the set", + i);
valueName [i] = input.nextLine();
System.out.printf("Please enter the value ", + i);
value[i] = input.nextInt();
}
}