Nested loops in Java

Nested loops in Java: Video Lecture 11

Nested looping refers to a loop inside another loop. Many applications require to loop over a repeated task. Nested looping is a solution to aid such repetitive tasks. As an example, consider printing ten lines on the terminal, where each line contains twenty asterisks, as shown below.

Java for-loop with if else. The post contains a video lecture explaining how to use if-else inside a for-loop.

An exercise on for-loops and if-else: Video Lecture 10

In the previous video lecture, we learned how to repeat a segment of code using a for-loop. The segment we used for repetition was small. In the following video lecture, we incorporate an if-else structure inside the scope of a for-loop. We use a simple problem to develop this practice scenario. The Problem used in […]

An introduction to Java for loop

An introduction to Java for loop: Video Lecture 9

Repetition of segments of codes is an essential part of programming. Repeating the execution of a code segment, a programmer can reduce the size of the code as well as solve problems that require iterations of similar computations for an arbitrary number of times. Java provides three syntaxes for repetition: for loop, while loop, and […]

Tracing a program with if-else if-else statements

An exercise, its solution, and tracing: if-else if-else in Java: Video Lecture 8

In the previous video-lecture, we described how if-else if-else statements work. We provided an exercise with the video-lecture. In the video with this article, we provide a solution to the exercise. Tracing a program with if-else if-else statements In the following video, we introduce a technique called tracing that we did not cover before. Tracing […]

Biggest Mistake while Teaching Kids Math

The Biggest Mistake while Teaching Kids Math

The article is about teaching kids math with a focus on problem-solving.

if-else if-else statements in Java

if-else if-else statements in Java: Video Lecture 7

The article explains if-else if-else control statements in Java. It provides a video and relevant exercises.

Boolean variables and relational operators in Java

Boolean Variables and Relational Operators in Java: Video Lecture 6

A boolean variable is capable of holding either “true” or “false.” A computer program may use one bit only to store the status “true” or “false.” You might already know that the smallest memory unit of the computer is a “bit.” Therefore, a boolean variable uses as little memory as possible to store the information […]

Arithmetic Operations in Java Programming Language.

How to Use Arithmetic Operators in Java: Video Lecture 5

The article describes the arithmetic operators in Java programming language. It provides a video lecture, which uses simple programming examples to explain the concepts.

User Input in Java for Different Types of Variables

More on Data Types and User Input in Java: Video Lecture 4

The article covers user input in Java for different data types. It uses a simple example and great details for beginners. We also provide a YouTube video in this article that describes the fine details of how to write the program.

Getting user input in Java can be intimidating for beginners. With practice, it can become easy.

Getting User Input and Making a Calculator Using Java: Video Lecture 3

I am writing this article in support of the video we made on the topic — Getting User Input in Java. The video helps new learners by providing explanations on how to develop a simple calculator program. The user of the program types on the keyboard to enter two numbers. The program captures the two […]

A video tutorial on Variables in Java.

An Introduction to Variables in Java: Video Lecture 2

I am writing this article today in support of the video I made on Variables in Java. The video describes a little bit of theory and then demonstrates how you can use multiple variables in your program. I used simple applications — addition and subtraction of two numbers — to describe how to use variables […]

How to write your first Java program

How to Write Your First Program Using Java: Video Lecture 1

Writing the first program using Java can be intimidating, especially if someone is learning a programming language for the first time. Please do not be afraid or discouraged. If you saw someone write programs in the speed of light — especially in movies when there are only ten seconds left to a terrible happening, which […]

What programming language should I learn first is a common beginners' question. The post answers whether you should learn Java, C, or Python first as your first programming language.

What programming language should I learn first?

When someone goes to a college to study Computer Science, she/he does not have to worry much about what programming languages to learn because the degree plan already contains an outline of almost all the required courses. Today, we are going to answer the question of which programming language one should learn if she/he does not […]

Learning to code is exciting and sometimes can be intimidating.

Learning to Code: Who should Learn it and Why

The practice of computing has become widespread over the last decade. Many people in non-computing disciplines now code using standard programming languages. Learning to code is not solely a curriculum-based effort anymore. Being able to write computer programs is an excellent skill because of many reasons. The article describes some of these benefits. The article […]

Misconceptions about computer science, computing, and programming

Misconceptions About Computer Science, Computing, and Programming

There are many misconceptions about Computer Science and Computing in general. The article outlines a number of them and explains why these misconceptions are unreasonable.