Study the Magic of Programming
-
Java Spells: ArrayList
This tutorial was created with Roy Nunez. To learn the basics of ArrayList check out their tutorial HERE. As a refresher, an ArrayList is like an Array without a set size. Unlike Arrays however, ArrayLists can only consist of Objects and cannot hold primitive data types like ints and booleans. If you want to make… Read more
-
Working the Magic: Interview Questions
Question 1: What’s the value of “nums” after executing the following code? Turns out this is a trick question. Arrays in Java start counting from zero so if you try to access the index of your Array’s length, you’ll try to access an index the Array doesn’t have crashing Java. Question 2: To be Added
Follow My Blog
Get new content delivered directly to your inbox.