Hello everybody
I want the end of file indicator in Java
I used the ctrl +Z but it seems not working ?!!
this is the code:
while (input.hasNext( ))
{
grade=input.nex tInt();
total=total+gra de;
gradeCounter=gr adeCounter+1;
incrementLetter GradeCounter(gr ade);
}
I want the end of file indicator in Java
I used the ctrl +Z but it seems not working ?!!
this is the code:
while (input.hasNext( ))
{
grade=input.nex tInt();
total=total+gra de;
gradeCounter=gr adeCounter+1;
incrementLetter GradeCounter(gr ade);
}
Comment