Log in

View Full Version : CLASS 2: How To Take Input In Java


Morash
04-07-2014, 05:43 PM
How To Take Input From Keyboard In Java




Input Method In Java Is Different From C++ . For Input In Java We Have To Import Scanner Class From java.util Package To Read Input From System.in. And Then In Main Class We Create Object Of The Scanner For Input Method.

Lines Started With // Are Comments Just For Your Understanding. Feel Free To Ask If There Is Any Problem.

http://i61.tinypic.com/m7b02d.jpg



Output

http://i59.tinypic.com/2u4347o.jpg

Akash
04-07-2014, 07:23 PM
Deer Kha Halka MASHA ALLAH Deer Kha pohige pa di Lanjo Kunjo ..

pakeeza
04-08-2014, 08:57 AM
thnkssss for ShaarinG

AYAZ
04-08-2014, 01:44 PM
Good explanation and easy tutorial thanks

Morash
04-10-2014, 01:13 AM
Thanks ..

Copyright ©2008
Powered by vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.