Toggle navigation
Home
Lectures
Introduction
Welcome to the unit
Pen and paper methodology
Compiling and running java programs from command prompt or terminal
History of Java
Software to install and first program
Some problem solving to revise COMP115/WCOM115
Static Debugging Unit Testing
What is static?
Debugging
Unit Testing and JUnit
Classes And Objects
Introduction to Object-Oriented Programming
Defining class and creating objects
I wish creating objects was easier (aka constructors)
Displaying objects
Copying objects
Comparing objects
Class containing array(s)
Array of objects
Recursion
What is recursion?
Why should I use recursion?
When should I not use recursion?
What happens during a method call?
Method calling itself
First look at a recursive solution
A better example
Searching
Binary search
Lists
What are lists?
Why are arrays not good enough?
Built in lists in Java
Enhanced for loop
Iterator
Array operation analysis
Custom-built arraylist
The Node class
Custom built linkedlist
Important methods in custom linkedlist
COMP125 Lecture Notes
COMP125 Lecture Material, hosted online, for your convenience!
Lecture Topics
1.
Introduction
2.
Static Debugging Unit Testing
3.
Classes And Objects
4.
Recursion
5.
Searching
6.
Lists