Java

Java Courses

AP CS 4: Boolean Expressions

Learn to create logic structures to help your programs make decisions for you

MVCode

AP CS 5: Iteration

Learn to use repeat structures to make your code more efficient

MVCode

AP CS 3: Objects

Learn to make Objects from classes, make use of their methods, and access their properties

MVCode

AP CS 11: Recursion

Recusion is when a method calls itself repeatedly in order to solve a task. Recursive methods need to be written with an end point in mind, called a base case.

MVCode

AP CS 8: ArrayLists

In this course we learn about a new more flexible alternative to arrays, whose size can change while the program is running.

MVCode

AP CS 10: Class Inheritance

We can share properties and methods across classes by linking them under a Parent->Child hierarchy. This helps us group similar classes together

MVCode

AP CS 9: 2D Arrays

There's one more type of Array to cover, the 2-Dimensional array- an array of arrays. We'll look at some examples and jump right in to the challenges

MVCode

Latest Java Lessons

Binary Search

A fast method of searching through sorted lists

Created by jamie 3 months ago

Access Level: premium

Account: MVCode

Euclids Greatest Common Denominator Algorithm

The great ancient Greek mathematician, Euclid's algorithm for computing the greatest common denominator between two numbers.

Created by jamie 3 months ago

Access Level: premium

Account: MVCode

The Fibonacci Sequence

The Fibonacci Sequence is a famous sequence of adding numbers together that appears in many instances in nature.

Created by jamie 3 months ago

Access Level: premium

Account: MVCode

Avoiding Infinite Recursion

Make sure your recursive methods have a proper base case that is guaranteed to be reached eventually.

Created by jamie 3 months ago

Access Level: premium

Account: MVCode

Recursion with multiple inputs

It's worth pointing out that recursive methods can take multiple parameters too

Created by jamie 3 months ago

Access Level: premium

Account: MVCode

Backtracking exercise 1

Use backtracking to reverse engineer what this method does

Created by jamie 3 months ago

Access Level: premium

Account: MVCode

Backtracking recursive methods

Backtracking is a technique you can use to work out what a recursive algorithm does

Created by jamie 3 months ago

Access Level: premium

Account: MVCode

Introduction to Recursion

A recursive method is a method that calls itself. These can be tricky to write but can also make life easier sometimes.

Created by jamie 3 months ago

Access Level: premium

Account: MVCode

Simulated 2D Data Processing

Many companies work with user data organized in tables. We're going to make a simulated grid and perform some example calculations

Created by jamie 4 months ago

Access Level: premium

Account: MVCode

2D Array Searching

Search an array for all index numbers that meet a certain criteria

Created by jamie 4 months ago

Access Level: premium

Account: MVCode

Random Integer 2DArray

Create a 2D Array of given size of random values from 0 to 10

Created by jamie 4 months ago

Access Level: premium

Account: MVCode

Create a print2DArray method

Create a method that takes in a 2D array and prints it visually

Created by jamie 4 months ago

Access Level: premium

Account: MVCode

Creating a 2D Array

Here we create a 2D Array, assign it values, and read values from it

Created by jamie 4 months ago

Access Level: premium

Account: MVCode

Introduction to 2D Arrays

Learn to create 2D Arrays

Created by jamie 4 months ago

Access Level: premium

Account: MVCode

Print Array

Make a nice array print method

Created by jamie 5 months ago

Access Level: premium

Account: MVCode

Insertion Sort

A sorting algorithm that inserts each element of an array into a new array in its proper position

Created by jamie 5 months ago

Access Level: premium

Account: MVCode

Bubble Sort

Bubble sort works great for small lists of data

Created by jamie 5 months ago

Access Level: premium

Account: MVCode

Array Sorting

Here we will start to look at sorting algorithms for arrays

Created by jamie 5 months ago

Access Level: premium

Account: MVCode

Array contains element

Write a method that checks if a character array contains a given input character

Created by jamie 5 months ago

Access Level: premium

Account: MVCode

Averaging an Array

Use the sum method you just created to calculate the average value of an array of integers

Created by jamie 5 months ago

Access Level: premium

Account: MVCode

Summing an Array

Create a sum method that returns the result of adding together every value of an integer array

Created by jamie 5 months ago

Access Level: premium

Account: MVCode

Array Method Exercises

Here begins our segment on practicing arrays through building array helper methods

Created by jamie 5 months ago

Access Level: premium

Account: MVCode

Array length

The length of an array returns the number of elements in the array. We can use this to tell our for loops how many times to repeat

Created by jamie 5 months ago

Access Level: premium

Account: MVCode

Traversing Arrays

Traversing an array means to visit each element in the array sequentially. We may modify these values or simply read them depending on what we are trying to accomplish.

Created by jamie 5 months ago

Access Level: premium

Account: MVCode

Creating an Array

Here we will create arrays using multiple methods in Java

Created by jamie 5 months ago

Access Level: premium

Account: MVCode

About Java
For Teachers and Schools

Teach coding to your students with MVCode Teach

MVCode offers an integrated product designed to teach coding to students.

Learn more about MVCode Teach