Jools Birch
,
Greenhorn
Nov 08, 2003 10:41:00
I'm wondering how you would go about making a program that prints out a users input. Could I have code for it?
Ernest Friedman-Hill
,
author and iconoclast
staff
Nov 08, 2003 10:49:00
But of course, this isn't what you're really after. Want to be more specific?
Jools Birch
,
Greenhorn
Nov 09, 2003 14:30:00
Like this Prompt user to enter a text "Enter something" Once the user presses Enter, whatever the user has inputted is displayed.
Ernest Friedman-Hill
,
author and iconoclast
staff
Nov 09, 2003 14:34:00
Not to give it all away for free... Prompt by printing to System.out, of course. Read a line by wrapping System.in in an InputStreamReader and a BufferedReader in turn, then calling BufferedReader.readLine(). Then print the result to System.out.
Jools Birch
,
Greenhorn
Nov 09, 2003 15:47:00
Why not "give away for free", it's not that much of a program is it?
William Barnes
,
Ranch Hand
Nov 09, 2003 16:33:00
Clowns were never meant to be THAT big! We must destroy it with this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com