Tags: array user input array java Array Data Structure arrays java array programs java arrays examples Java (Programming Language) java programming video tutorial java programming java video tutorials for beginners
In this video tutorial for beginners you will learn how to read / receive user input for the array in java programming language with example.
You will learn how to create an array, how to read input for the all array elements from user, how to display all the all elements using a loop in detail with example.
Get the source code of this tutorial at our website
http://www.LearningLad.com
Watch Video tutorials in HINDI at
http://www.youtube.com/user/LearningLadHindi
Catch us on SocialMedia
facebook http://www.facebook.com/LearningLad
twitter http://www.twitter.com/LearningLadEdu
Google+ http://www.google.com/+LearningLad
or
Question
Good job, what makes me subscribe your channel, is your simplicity.
Suggestion: It would be great if you provide the direct link of your source code, exploring it on your website is kinda time taking.
Thanks.
output:
enter the number friends you gonna enter
2
enter you friends name
enter your friend name 1
manoj kumar
enter your friend name 2
your friends names are
manoj
kumar
this is what happening when we give space between the name ,it is not allowing to write second friend name if we give space between the name. how to prevent this problem
what if i want my user to directly enter names without specyfying number of names????
Would like to ask is there a significant difference between input.next() and input.nextLine() for strings? Thanks anyone !
in array we have to always run the loop for the simple program also???
what if you need just 5 numbers and dont need to ask how many friends name that you are gonna enter?
Bro you are amazing you resolve my problem this confusion always disturbe me whenever i am in washroom i just think about that how how i can enter the info by user in array and this thing always put me in trouble you are hero you really resolve my problem you rock !!!!!!
Thanks ....man
LOVE FORM PAKISTAN .
if you dont make it plus 1 after counter and make counter in the forloop equal to 1, u will get enter name of friend 1
Thanks a lot. I stuck with a problem for a whole night. i was almost being crazy.
i search a lots. and after the whole night surfing on internet god send you to me for help me. i am very grateful to you. May god give you a long life and energy to help people.
This was a very helpful tutorial, i wish i found it earlier. i had to figure this out through trial and error. Great job explaining it all step by step.