So, recursion, one of the hardest units in APCS. The concept is pretty easy but the execution is a bit trickier. Today, I'm going to pass on a trick that my teacher taught me on how to trace your way through a recursion problem. I'm going to assume that y'all already know what recursion is... Continue Reading →
Sorting methods as it pertains to arrays isn't the simplest thing to wrap your head around but the concept and the way they should work should be pretty intuitive. You would need to know about two main sorting methods in APCS; the selection sort and the insertion sort. Like the different types of loops, both of these... Continue Reading →
Arrays are basically lists of things. This list can contain both objects and primitive data. The basic array can be declared and instantiated as such: (data type)[ ] (arrayname) = new (data type) [(number of elements)]; Since arrays are considered as objects, the declaration and instantiation follow the pattern of other objects. So, if I... Continue Reading →
This lab review goes over three labs within Chapter 2: the base conversion lab, the circle lab and the string manipulation lab. Even if you aren't an AP Comp Sci student, if you are learning Java and want some practice, these lab reviews are a good resource. Chapter 2 covers the concept of objects and primitive data.