im new to java and need help with this code. i need to show stars to represent the numbers which have been entered. so far my for loop is only showing the one star, how can i get it to show the number of stars which represent the amount of numbers i have entered.
System.out.println("Enter Student mark");
number = Integer.parseInt(br.readLine());
if (number <=29)
bottom = bottom + 1;
else if (number >=30 && number <=39 )
middle = middle + 1;
else if (number >=40 && number <= 69)
middletop = middletop + 1;
else if (number >=70 && number <=100)
top = top + 1;
}
System.out.print("0-29 " + bottom);
for (star=1; star <= bottom; star++); {
System.out.println("*");
}
if bottom represents five numbers, can anyone help and show how to print five stars to represent bottom.im new to java and dont understand for loops yet.