Professional Documents
Culture Documents
Labs Lab: Hello World
Labs Lab: Hello World
Lab 1: Variable
The purpose of this lab is to familiarize students with variable.
What a variable is
– Types of variables
– Naming of variables
– Variable assignment
What a primitive data type is
Other data types (ex. String)
Lab 3: Gradebook A
The purpose of this lab is to familiarize students with Array.
An array is a series of compartments to store data.
– Essentially a block of variables.
– In Java, arrays can only hold one type.
– For example, int arrays can hold only integers
Lab 4: Gradebook B
The purpose of this lab is to familiarize students with method.
– What a method is
– Why we use methods
– How to declare a method
– How to invoke a method
– How to use method