Java Video Tutorial 12

Java Video Tutorial 12In this part of the Java Video Tutorial I cover Java Linked Lists.

The LinkedList class is a collection based on a linked list instead of an array like the ArrayList. They are good when you plan to add and delete items. They aren’t particularly efficient at providing access based off of index searches though.

Nearly every Java Linked List method is shown below. Make sure you look for the code that follows the video, so you completely understand Linked Lists.

If you like videos like this, share it [nttfblike]

Code from the Video

27 thoughts on “Java Video Tutorial 12”

    1. That was the idea behind creating this website. I always wanted to contribute to providing a free education to the world. Thank you for taking the time to show your appreciation 🙂

    1. Thank you 🙂 It is very risky to make video tutorials without a book to guide me nor any outside influence. I’m glad you enjoy them. I love making them

  1. Once again thanks for the video,i just wanna say that i am from India, is there is any book u recommend to study for java or should i only watch videos on internet to learn java in Depth.

    1. I personally learned everything from books, but I didn’t have access to the internet and video tutorials when I was first learning to program. I’d say it is best to try a bunch of different options to see what works best for you. If you start reading a book and it doesn’t make sense, or isn’t interesting then move to a different book. The most popular Java book is the head first java book. It is a little dated, but that won’t matter at all if you are just starting to program. I hope that helps. I can’t believe I’m popular in India! Thank you 🙂

      1. Thanks Derek i just downloaded book “head first java”,i am starting to read it.Just tell me how much time will it take to become a professional programmer,i mean what programming languages should i learn in addition to java as i know little bit of C and C++.

        1. That depends on how quickly you can make sense of OOP programming. Everybody is different. I think the most important thing is that you enjoy learning about programming. It also depends on what you mean by professional. The are many people that get hired as programmers that don’t know what they are doing. There are very few people that could write great software. It is more of an art form after you get past the introductory level

  2. Hi Jeff, really appreciate your tutorials. Thank you for your time.

    My question is when would linked lists be used? What kind of software would need them?

  3. And yes you are popular in INDIA.
    Thank you for such great video series.

    PS : It would be great if we can see data structures using java videos ( covering linked list,stack,queue,tree,graph implementations ).

  4. Hi Derek, I really appreciate what you do! Thank you a lot!
    Greetings from Bulgaria (a small country in South-Eastern Europe).

  5. Can you provide the code as a .txt or .java file? I like to save offline notes and I need to manually remove the line numbers when I copy/paste. Thanks!

    Amazing tutorials by the way – I have a computer science degree and these videos are a great (and fast!) refresher.

    1. If you put your cursor at the top of the code 3 icons appear at the top right. one is called view source. If you click that it will eliminate the line numbers. Sorry about that.

  6. Is there a difference between Push/Pop and AddFirst/RemoveFirst? They appear to do the exact same thing. I assume this is just convention, so you should use push/pop if your linked list is acting as a stack, just so it’s not confusing to anyone reading your code.

  7. Hi Derek,

    U are really wonderful. Im astonished by the way u teach. Even I wanted learn the concepts very clearly like u. Give me some tips…

    1. Thank you 🙂 I think I’m able to do what I do for a couple of reasons.

      1. I really enjoy everything I do.
      2. If I ever start to get bored I switch to another activity.
      3. I eat a very healthy diet of only fruit, vegetables and grains
      4. I exercise for 20 minutes at a time or less 5 times per day normally between different jobs
      5. I read constantly and do my best to avoid news, pop culture, etc.
      6. I try to make every moment of the day special. I play with my kids for a bit numerous times per day. I enjoy a little music here and there. I take time to eat great tasting meals. Every day is just another adventure.

      I hope that helps 🙂

Leave a Reply

Your email address will not be published. Required fields are marked *