Category: Intro to Java Series

Start learning how to program in Java today with this introductory series, structured similarly to a Computer Science I course.

This series features code examples, video tutorials, review quizzes, and sample projects.

What You’ll Learn

Chapter 1: Introduction to Java

July 18, 2024
Chapter 1: Introduction to Java

Welcome to the first chapter of this introductory programming series. In this chapter, you will learn the basics of how programming languages make computers work and the advantages of using Java. You will learn a simple definition of object-oriented design and explore its advantages. Hopefully, you’ll pick up some useful study tips, too. If you already […]

Chapter 2: Hello, World.

July 17, 2024
Chapter 2: Hello, World.

This chapter will introduce you to the IntelliJ IDE. We will explore the basics of building a program called Hello World, which simply prints the message “Hello, World.” out to the console. This is a classic first lesson for new programmers – a time-tested tradition dating back to at least 1972[1]. Although it may be […]

Chapter 3: Variables, Scanners & Strings

July 17, 2024
Chapter 3: Variables, Scanners & Strings

This chapter will explain what variables are and how they are used. You will learn about different types of variables (primitive data types), strings, and how to perform some basic math operations. You will also learn how to use Scanners to read user input from the console window. We will conclude this chapter with a […]

Chapter 4: Decision Making with Control Statements

July 17, 2024
Chapter 4: Decision Making with Control Statements

Computers can do much more than take input and return a simple set of formatted output (like a basic calculator). They can actually decide and perform actions based on the data that’s given to them. This is the basics of algorithm development. Algorithms are sets of rules followed by computers to solve problems. Control statements […]

Chapter 5: BigDecimals, Mutability & Basic Memory Concepts

July 17, 2024
Chapter 5: BigDecimals, Mutability & Basic Memory Concepts

In this chapter, we will study BigDecimals and learn about how the JVM handles them in system memory. The BigDecimal class is used to perform calculations when precision and rounding are of great importance. This makes them useful if you need to perform exact calculations involving money or other sensitive data. In Chapter 3, we […]

Chapter 6: Custom Methods

July 17, 2024
Chapter 6: Custom Methods

So far in this series, all of our code has gone in the main method. A method is a block of code that gets executed when it’s called and is associated with a particular object or class. It’s a slightly more specific type of function, which is a block of code that is just executed when […]

Chapter 7: Loops

July 17, 2024
Chapter 7: Loops

Being able to do the same tasks or computations repeatedly is one of the most useful things we can do with computers. Loops are blocks of code that can be repeated until a certain condition is met. They are fundamental to the development of many algorithms. There are several loop structures, which we will cover […]

Chapter 8: Recursion

July 17, 2024
Chapter 8: Recursion

This chapter discusses recursion, or recursive loops. Recursive loops are a loop structure in which a method invokes itself until a certain condition is met. In other words, a method will call itself repeatedly to create a loop. Here is the basic layout of a recursive method. Recursive Counter With Static Variable The first step to create […]

Chapter 9: Arrays

July 17, 2024
Chapter 9: Arrays

In this chapter, we’ll be examining arrays. An array is a collection of objects or variables of the same type. Each object or variable in an array is an element of that array. Each element of the array is assigned an index, or a numerical value starting from zero. Elements of arrays are accessed with the array indexing operator, two square […]

Chapter 10: ArrayLists

July 17, 2024
Chapter 10: ArrayLists

In the last chapter, you learned about arrays. One of the biggest limitations of arrays is their fixed size. A work around was discussed for expanding arrays by creating a new array and copying the old array values into the new. In this chapter, you will learn about ArrayLists. The ArrayList class is used to make dynamic […]

Jump to category: