COMP268 - Introduction to Computer Programming (Java)

Revision 13 · 3 credits · Java programming foundations

10 Units · Open Tutorials

Welcome to COMP268

This open study guide develops programming skill through small Java programs, deliberate practice, debugging, and gradual design. It supports the syllabus course and does not replace official course materials or assessment.

Prerequisite: COMP200 or equivalent programming readiness.

Course Units

Unit 1: Java Setup and First Programs

Tools, source files, compilation, values, variables, and output.

View Unit →

Unit 2: Expressions and Input

Types, operators, casting, strings, and safe console input.

View Unit →

Unit 3: Decisions and Boolean Logic

Conditions, branching, validation, and truth tables.

View Unit →

Unit 4: Repetition and Algorithms

Loops, counters, sentinels, nesting, and algorithm tracing.

View Unit →

Unit 5: Methods and Decomposition

Parameters, return values, scope, overloading, and design.

View Unit →

Unit 6: Arrays and Strings

Indexed data, searching, sorting, and immutable text.

View Unit →

Unit 7: Classes and Object Design

State, behavior, constructors, encapsulation, and class invariants.

View Unit →

Unit 8: Inheritance and Polymorphism

Reuse, overriding, abstract types, and interfaces.

View Unit →

Unit 9: Collections, Exceptions, and Files

Lists, maps, error handling, and persistent text data.

View Unit →

Unit 10: Recursion, Testing, and Capstone

Recursive thinking, JUnit-style tests, refactoring, and integration.

View Unit →