It appears you have not yet registered with DEVPPL. To register please click here... (it's fast, easy and free!)

Forum

Log In Sponsors
Board index Programming Java Forum

Recursion function waiting for the user to input something

Recursion function waiting for the user to input something

Postby killesk on Mon Apr 23, 2007 3:41 pm

Hi,
I have a small problem with my code and have figured out that a recursion function would be the best way to solve it, but i need the function to be able to wait for the user to input from the command line? and help?
thanks a million,
Paul
killesk
 
Posts: 2
Joined: Mon Apr 23, 2007 3:36 pm

Postby ggomez on Tue Apr 24, 2007 3:14 am

1st Step: import java.util.Scanner;

2nd Step: Scanner read=new Scanner(System.in);

3rd Step: read.nextString();


Read the "Scanner" documentation
ggomez
 
Posts: 45
Joined: Tue Apr 17, 2007 3:30 am
Location: !!!!!MéXiCo¡¡¡¡¡¡

Postby killesk on Tue Apr 24, 2007 2:53 pm

thanks a million man, sound.
killesk
 
Posts: 2
Joined: Mon Apr 23, 2007 3:36 pm


Who is online

Users browsing this forum: psbot [Picsearch] and 2 guests