want menu driven prog. who to take user i/p in the middle of the prog.
i can take i/p from command line .. but wann take in the middle of the exceution.
Is there any thing like System.in.readline(); ?
give me a simple example code .
want menu driven prog. who to take user i/p in the middle of the prog.
i can take i/p from command line .. but wann take in the middle of the exceution.
Is there any thing like System.in.readline(); ?
give me a simple example code .
Read about Scanner and BufferedReader in the Java API.