Examples from Lectures for CSC 120
- Lecture 38 — Some useful methods in the Java
Math
class — 11/22
Math class reference page from W3Schools.com — 11/22 - Lecture 34 — Finding sum, average, min and max of an array — 11/12
MUPanel class for a demo program for in-class example — 11/12
SoccerTeam class used in this example — 11/12 - Lecture 32 — How to process arrays — 11/8
How to detect collisions for Program # 6 — 11/8 - Lecture 30 — MUFrame.java for program that uses an array of Mouse objects — 11/3
MUPanel.java for this program — 11/3
Mouse.java class definition file for this program — 11/3 - Lecture 29 — How to Use Swing Components for a User Interface — 11/1
MUFrame.java that draws rows and columns of dots with spinners and sliders — 11/1
MUPanel.java for this program — 11/1 - Lecture 27 — Using a for loop to generate a series of values — 10/27
- Lecture 24 — Finding the total, average, maximum and minimum of a series of values entered by the user — 10/20
- Lecture 23 — Program that shows use of getText and setText with TextFields, TextAreas and Labels — 10/19
- Lecture 22 — Program that simulates rolling dice — 10/13
- Lecture 21 — Program that uses a Random object to generate unpredictable sequences — 10/11
- Lecture 20 — MUFrame.java for program to turn lights on & off in windows of a house — 10/8
MUPanel.java for this program — 10/8
House class file for this program — 10/8
Window class file for this program — 10/8 - Lecture 19 — Starter Files to use for Practicum # 1 — 10/6
- Lecture 16 — TVSet.java class definition — 9/29
MUPanel.java that uses TVSet objects with Buttons — 9/29 - Lecture 15 — BankAccount.java class definition — 9/27
MUPanel.java that uses BankAccount objects — 9/27 - Lecture 12 — TVSet.java class definition — 9/20
MUPanel.java that uses TVSet objects — 9/20 - Lecture 11 — Structure of all setter and all getter methods — 9/17
BaseballHitter.java class definition — 9/17
MUPanel.java that uses BaseballHitter objects — 9/17 - Lecture 10 — Lecture Notes about typical methods in a class — 9/15
- Lecture 9 — Lecture Notes about Data Types, Operators and Methods — 9/13
MUPanel.java developed in class — 9/13 - Lecture 8 — Lecture Notes about Kinds of Methods and Data Types — 9/10
- Lecture 7 — How to enter different data type values in Java statements — 9/8
- Lecture 5 — Structure of all Class Definitions — 9/1
LollipopTree.java class definition — 9/1
SmileySun.java class definition — 9/1
MUPanel.java that uses tree and sun objects — 9/1 - Lecture 4 — Methods of the Graphics class explained — 8/30
- Lecture 3 — modified Flag.java class definition (modified to draw a vertical stripe) — 8/27
MUPanel.java that draws flags and names the country — 8/27 - Lecture 1 — Introduction to Java Programming & Objects — 8/23