Java For Beginners: Chris Coetzee
Java For Beginners: Chris Coetzee
Beginners University
Greenwich
Computing At
School
DASCO
Chris
Coetzee
Levels of Java coding
1: Syntax, laws, variables, output
2: Input, calculations, String manipulation
3: Selection (IF-ELSE)
4: Iteration/Loops (FOR/WHILE)
5: Complex algorithms
6: Arrays/Linked Lists
7: File management
8: Methods
9: Objects and classes
10: Graphical user interface elements
Arrays vs Linked Lists
Array List
One or Two
Only linear
dimensions
Before you using a
Linked List
import java.util.*;
Creating a Linked List
Output
Removing items from a
linked list
Output
Useful LinkedList methods
Method What does it do
.length() Strings
e.g. int m = name.length(); //name is a String
.length arrays
e.g. int g = boxes.length; //boxes is an array
LinkedList example
forget to do?