Intro to Programming Examples


1.1 Programs, Fields

1.2 Java as a Calculator

1.3 Syntax

2.1 Using Fields

2.2 Beyond ints

2.3 Java Checks Types

3.1 Capturing Repeated Work with Methods

3.2 Methods as Descriptions of Tasks

3.3 With Great Power Comes More Opportunity for Mistakes

4.1 Beyond Arithmetic and Concatenation

4.2 More Examples of Decision-Making Programs

5.1 Representing Compound Data

5.2 More on Methods

5.3 Variables and Scope

6.2 From Examples to Testing

7.1 Nested Data

7.2 More Regions

8.1 Searching for Images

8.2 Queries as Data

8.3 Identifying Common Behaviors

8.4 Combining Queries

9.2 Printing

9.3 The static keyword

9.4 The void keyword

9.5 The main method

11.2 Abstracting Common Method Implementations

Create your playground on
This playground was created on, our hands-on, knowledge-sharing platform for developers.
Go to