Learn Java Tutorial for Beginners, Part 10: Arrays

///Learn Java Tutorial for Beginners, Part 10: Arrays

Learn Java Tutorial for Beginners, Part 10: Arrays

FavoriteLoadingAdd to favorites

Get complete courses at
How to use arrays in Java; creating, accessing and iterating through arrays. Also, a look at the difference between a value and a reference.

source

Java468x60
By |2019-10-26T23:33:02+00:00October 26th, 2019|Java Video Tutorials|36 Comments

36 Comments

  1. Erickson Recopuerto October 26, 2019 at 11:33 pm - Reply

    didnt know vaatividya made programming tutorials (just a joke) great vid 😀

  2. phengsrun heng October 26, 2019 at 11:33 pm - Reply

    I am so happy because i found very good java tutorial.

  3. Walnut OfTerror October 26, 2019 at 11:33 pm - Reply

    Great tutorial, I just don't get why do we go through trouble of referencing and then assigning numbers to values, when we could do it from the start with curly brackets.

  4. Charles Engelbrecht October 26, 2019 at 11:33 pm - Reply

    Thanks for these great vids John. Quick question: In this example, when you code "i<numbers.length" the result is that it outputs all the numbers/values (up to 30 and 7), so I assume the ".length" reference means something like "stop when i is LESS than the last value in the array, plus one more placeholder value" … which would mean the same as "stop when i is EQUAL to the last value" … right?

  5. Stephen Mills October 26, 2019 at 11:33 pm - Reply

    I am loving these Java tutorials. They go at an even and slow pace, which I like, and you really take the time to explain everything. All the other tutorials I found on Youtube went at an extremely fast pace. Thanks for making these.

  6. Logix October 26, 2019 at 11:33 pm - Reply

    I really like that you made the beginner courses free. 🙂

  7. Rameen Alawi October 26, 2019 at 11:33 pm - Reply

    Thanks Sir your lessons are so usefull …

  8. Mofreh Sarhan October 26, 2019 at 11:33 pm - Reply

    Thank you so much for sharing and uploading a very easy to follow tutorials , excellent choice of music
    I have a great diffeculty switching between Eclips ,and IntelliJ , can not get use to netBeans
    only when try to start class or project and packages ,
    You may have covered that in prevois video
    i will have a second look but if you have an idea where to look , thank you so much of excellent presentaion

  9. Heat4Life October 26, 2019 at 11:33 pm - Reply

    Is values = new int[3]; and int[] numbers = {5, 6, 7}; just the same?

  10. Heat4Life October 26, 2019 at 11:33 pm - Reply

    I'm still a little bit confused, Why do I need to put like values[i] <– (i) in The For Loop?

  11. Tony Montana October 26, 2019 at 11:33 pm - Reply

    I don't know if anyone else has addressed this in other comments, but you're completely wrong on the century reference. There was no "year zero" We went from 1 B.C. to 1 A.D. This is why the confusion exists about when the 21st centuary began. It began 2001, not 2000.

  12. James Whyte October 26, 2019 at 11:33 pm - Reply

    What exactly is numbers.length and values.length doing here exactly?

  13. Screamo Guy October 26, 2019 at 11:33 pm - Reply

    Is there a way of setting it that the Numbers in the array are all numbers from n to 1?

  14. Emre Karabash October 26, 2019 at 11:33 pm - Reply

    May i ask – how did you get the first and second value(20-30).

  15. GeekyLoopholesFinder October 26, 2019 at 11:33 pm - Reply

    Why my program is not running ? 

          public class MyFibonacci {
     
        public static void main(String[] args){
             
             int febCount = 15;
             int[] feb = new int[febCount];
             feb[0] = 0;
             feb[1] = 1;
             for(int i=2; i < febCount; i++){
                 feb[i] = feb[i-1] + feb[i-2];
             }
     
             for(int i=0; i< febCount; i++){
                     System.out.print(feb[i] + " ");
             }
        }
              }

  16. RS SE7EN October 26, 2019 at 11:33 pm - Reply

    liked before watching 🙂

  17. Filip Nicolae October 26, 2019 at 11:33 pm - Reply

    Thank you kind sir for these tutorials!

  18. Chris October 26, 2019 at 11:33 pm - Reply

    Hi, is this Java or JavaScript

  19. AngryPotatoGamer October 26, 2019 at 11:33 pm - Reply

    I only waste time wondering why i was having a error in [i]
    so after the for(…) i have a " ; " , just take that away and is Done! nice job! 😉

  20. Elín Ingimundardóttir October 26, 2019 at 11:33 pm - Reply

    I feel lucky having found these tutorials. Very well made. Thank you. 

  21. Diego Franco October 26, 2019 at 11:33 pm - Reply

    very very good stuff. I´m attending to a spring course but I have not programmed anytime, but is very easy to follow and very nice and convinient in the voice music and image

  22. Andrew Shen October 26, 2019 at 11:33 pm - Reply

    I have a question, what is the point of array? Why can't we just creat ten int instead of an array with ten int space

  23. xilemazeret October 26, 2019 at 11:33 pm - Reply

    java made easy!

  24. DdoubleE Who Me? October 26, 2019 at 11:33 pm - Reply

    yh thanks for that, i got there in the end!.cheers for the reply.

  25. Cave of Programming October 26, 2019 at 11:33 pm - Reply

    Get rid of the semi-colon after the for() statement (at the end of the line).

  26. DdoubleE Who Me? October 26, 2019 at 11:33 pm - Reply

    thats meant tobe system.out.printIn by the way…LOL

  27. DdoubleE Who Me? October 26, 2019 at 11:33 pm - Reply

    Im still struggling a little bit, im trying to get my code to simply count to 10 by…..declaring int i
    for (i = 0; i <= 10 ;i++);
    system.out.print(i); and it just say's 10! please tell me what im doing wrong, thanks for the tutorials by the way, their just what i was looking for. very well done.

  28. NaN October 26, 2019 at 11:33 pm - Reply

    The year 0 does not exist in the commonly used Gregorian calendar. It starts at the year 1. The year before that is the year 1 BC.

  29. aC Smoove October 26, 2019 at 11:33 pm - Reply

    Alot has changed since JDK7….

  30. Alin P October 26, 2019 at 11:33 pm - Reply

    Thank you! I found it very usefull and clear. (All of them.) Well done.

  31. Cave of Programming October 26, 2019 at 11:33 pm - Reply

    Yes, right again, I believe.

  32. Wayne Marshall October 26, 2019 at 11:33 pm - Reply

    I think i got that slightly wrong its the new int[] that allocates memory

  33. Wayne Marshall October 26, 2019 at 11:33 pm - Reply

    i meant at the side of the brackets

  34. Wayne Marshall October 26, 2019 at 11:33 pm - Reply

    new int[] is the object here and java allocates memory according to what values you put in the brackets, bit like a string variable if I'm thinking along right lines?.

  35. Chitra Indalkar October 26, 2019 at 11:33 pm - Reply

    good one John, thanks

  36. chedo mri October 26, 2019 at 11:33 pm - Reply

    very well

Leave A Comment

*