Help me in solving GSJ209A problem

My issue

need solution what is wrong

My code

// Update the '_' in the code below
import java.util.Scanner;

class Codechef
{
	public static void main (String[] args)
	{
        Scanner read = new Scanner(System.in);
        i
        String A = read.nextLine();
        String B = read.nextLine();
        String C = read.nextLine();
        String D = read.nextLine();
        String E = read.nextLine();
        // You can use "\n" to add a new line instead of adding multiple print statements
        System.out.print(A + "\n" + B + "\n" + C + "\n" + D + "\n" + E );
	}
}

Learning course: Logic Building in Java
Problem Link: CodeChef: Practical coding for everyone

the solution is
import java.util.Scanner;

class Codechef {
public static void main(String args) {
Scanner read = new Scanner(System.in);

    String A = read.nextLine();
    String B = read.nextLine();
    String C = read.nextLine();
    String D = read.nextLine();
    String E = read.nextLine();
    
    // Using System.out.print with "\n" to print each string on a new line
    System.out.print(A + "\n" + B + "\n" + C + "\n" + D + "\n" + E);
    
    read.close(); // Close the scanner
}

}

you should close the scanner