Cover Page by Rogers Cadenhead

Safari, the world’s most comprehensive technology and business learning platform.

Find the exact information you need to solve a problem on the fly, or go deeper to master the technologies and skills you need to succeed

Start Free Trial

No credit card required

O'Reilly logo

Day 4. Lists, Logic, and Loops

Today, you learn about three of the most boring features in the Java language:

• How to organize groups of the same class or data type into lists called arrays

• How to make a program decide whether to do something based on logic

• How to make part of a Java program repeat itself by using loops

If these features don’t sound boring to you, that’s good. Most of the significant work that you will accomplish with your Java software will use all three.

These topics are boring for computers. They enable software to do one of the things at which it excels: performing repetitive tasks repeatedly.

Arrays

At this point, you have dealt with only a few variables in each Java program. In some cases, it’s manageable to use individual ...

Find the exact information you need to solve a problem on the fly, or go deeper to master the technologies and skills you need to succeed

Start Free Trial

No credit card required