-
Without Keyboard input assinging value to String name
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
Similar Threads
-
By mdengler in forum ASP.NET
Replies: 0
Last Post: 11-26-2002, 02:32 PM
-
By Fred Mayes in forum Java
Replies: 1
Last Post: 06-05-2001, 06:12 AM
-
By Julian Milano in forum VB Classic
Replies: 0
Last Post: 08-10-2000, 09:16 PM
-
By chandra in forum VB Classic
Replies: 0
Last Post: 06-22-2000, 07:36 AM
-
By Robert Rieth in forum VB Classic
Replies: 1
Last Post: 04-11-2000, 03:21 AM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Development Centers
-- Android Development Center
-- Cloud Development Project Center
-- HTML5 Development Center
-- Windows Mobile Development Center
|