Click here to Skip to main content
15,884,176 members
Please Sign up or sign in to vote.
1.00/5 (3 votes)
See more:
how to take user input in java ?
i know a liitle about parse ?
can someone please suugest some articles?
Posted

1 solution

You Can Use Scanner Class of util package
first
import java.utl.Scanner
then create object of that class

Scanner sc=new Scanner(System.in);

and then use its method appropriate to your data type if you want integer then

int i=sc.nextInt();

I hope that helps
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900