I used scanner for the first time. I got an error @ finish, saying that finish is not closed properly. What is meant by that. Thanks!
import java.util.Scanner;
public class inputvalue {
public static void main(String[] args) {
int i = 0;
Scanner finish = new Scanner(System.in);
int j = finish.nextInt();
while (i < j) {
System.out.print("hai");
i = i + 1;
}
}
}