News

For loops in Java are extremely powerful and lend themselves to many different coding applications. In this post, we will explain how to use them, and look at more advanced concepts such as labelling.
In Java, we can implement whatever sorting algorithm we want with any type. Using the Comparable interface and compareTo() method, we can sort using alphabetical order, String length, reverse ...
In this module the student will learn the very basics of algorithms through three examples: insertion sort (sort an array in ascending/descending order); binary search: search whether an element is ...
Check out our post on how to write your first Android game in Java for a demonstration of how that might work. Finally, do while loops can be used when you want to run a code block at least once.