I am trying out simple programs like-- to find GCD etc. Can you please tell me how can a user feed input from keyboard in command prompt/in java.I have searched in google,but could not understand properly.It being my first day of programming in java,I am not getting how to use KeyboardReader or Scanner class.Which package do I need to import to work with either of these?
Please suggest an easy way to feed the input data
Thank you both.
My problem is solved and I found the tips to be really useful.I know these are the most basic things in Java.But for a child, alphabet series appears to be the most difficult thing invented.So is in my case.
Thank you again.