HTML & JS
// Java program to demonstrate BufferedReader
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Test 
{
    public static void main(String[] args) throws IOException 
    {
        //Enter data using BufferReader
        BufferedReader reader = 
                   new BufferedReader(new InputStreamReader(System.in));
       
        // Reading data using readLine
        int a = Integer.parseInt(reader.readLine());
        String name = reader.readLine();

        // Printing the read line
        System.out.println(a);
        System.out.println(name);        
    }
}


Generated URL:

Output:

2
Geekstocode
Report Bug