MeraForum Community.No 1 Pakistani Forum Community - View Single Post - CLASS 2: How To Take Input In Java
View Single Post
(#1)
Old
Morash's Avatar
Morash Morash is offline
 


Posts: 17,781
My Photos: ()
Country:
Star Sign:
Join Date: Jul 2010
Location: ▌║█║▌│█│║▌║
Gender: Male
?? CLASS 2: How To Take Input In Java - >>   Show Printable Version  Show Printable Version   Email this Page  Email this Page   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.





Output




 





bE driveN wiTh puRpOse, Be r313n71355 in your alιgnмenт;
with excellence.
pAy n0 mInd to the ∂ιsιмραssισηε∂ เ๓ק๏tєภt ђคtєгร

.. нoolιgan
Reply With Quote Share on facebook
Sponsored Links