Click here to Skip to main content
15,077,641 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?

1 solution

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

Scanner sc=new Scanner(;

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

int i=sc.nextInt();

I hope that helps

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