0
I wonder why at the time I run the algorithm, the line that asks to type the student’s name is printed on the screen 2 times.
Scanner input = new Scanner(System.in);
System.out.println("Quando o tamanho do conjunto de alunos");
int tamanho = input.nextInt();
String[] alunos = new String[tamanho];
for(int i = 0; i < tamanho; i++)
{
System.out.println("Digite o nome do aluno");
alunos[i] = input.nextLine();
}
I do not know what was worse, the edition that does not improve the text or the approval of these extremely simplistic editions that do not substantially improve the text, maybe just to gain points.
– Maniero
@moustache the editor is new on the site, and I even understand that he is editing willingly. On the other hand, you can see from the history books that it’s always the same staff who approves editing anyway and doesn’t care about the thing, instead of orienting new users.
– Bacco
@Bacco the intention was to emphasize this very thing :)
– Maniero