Java file: ConsoleInputReader.java which is prompting us for key Input.Our requirement is that we can not modify this file as you can think as venodor specific file.

our requirement is that using batch file or ant file or any other means without modifying this java file we have to print the name variable of this java file


import java.io.*;

public class ConsoleInputReader
{
public static void main(String[] args) throws Exception
{
inputProcess();
}

static void inputProcess() throws Exception
{
System.out.println("Please Enter your name");
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String name = br.readLine();
System.out.println("Your Name is "+ name);
}
}

Awaiting for reply.

Thanks and Regards
Sunil