Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

how can i take the inputs from users in java program?

Answer Posted / dilshad

there r 2 ways to give the input ,


one is from command-line argument at run time.......


and the another one is to use readLine method of
DataInputStream class.............

Is This Answer Correct ?    33 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why do we use threads in java?

1060


How to run a JAR file through command prompt?

1220


Is char * a string?

944


What is the default size of set in java?

917


Can inner class be public in java?

982


Differentiate between nested and inner class in java.

963


Is singleton set an interval?

905


What is difference between static class and singleton pattern?

964


Which class represents the socket that both the client and server use to communicate with each other?

980


Who developed java?

944


What is a method declaration?

946


What is the difference between compile-time polymorphism and runtime polymorphism?

942


can rmi and corba based applications interact ?

1028


Write a factorial program using recursion in java?

956


Is there a sort function in java?

928