Java Programming

Location: Room 223B, 德田館
Time: 0900 ~ 1200, Saturday and Sunday


``Java is C++ without the guns, knives, and clubs.''
-- James Gosling, co-inventor of Java (1955-)

Instructor information

Objectives

This course is designed for the students who want to learn Java but have any programming experiences before. We will start with the very beginning of program design and fundamental concepts about programs and machines. You are expected to be capable to implement your idea in Java independently after 30 hours of lectures. Furthermore, I wish you could learn other programming languages without suffering from starting over.

Prerequisites

Text

References

Java (introductory level)

Java (advanced level)

Data structures and algorithms

Object-oriented analysis and design

Computer organization/architecture

Misc

Additional reading

Installation & Wifi

Overview

Procedural programming

Object-oriented programming

Utilities

Data structures and algorithms

Design patterns

Schedule [ 247, 250, 251, 252, 253, 254, 255, 260, 261, 263, 265, 266, 268, 269, 271, 274, 275, 276, 277, 278, 280, 281, 281n, 282, 283, 284, 286, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 301, 304 ]

Date Summary
2018.9.1 programs, computational solutions, computer systems (CPUs, memory, memory hierarchy), programming languages (high-level, assembly, machine code), algorithms, JDK + Eclipse, first Java program, variables, data types (int, double, char, boolean) (see IEEE754 standard; also see some disasters attributable to numerical analysis);
2018.9.2 assignment operator (=), arithmetic operators (+, -, *, /, %), type conversion, casting, rational operators (>, <, ==), logical operators (!, &&, ||, ^), compound operators (+=, ++), reference types, Scanner object, selections (if-else if-else); HW0: Lab 0 due 9/8;
2018.9.8 (3h30m) selections (switch-case-default, ?: operator), loops (while, do-while, for) (see pp. 8-10 of the slides 20180824.pdf for CS games); HW1: Lab 1 and 2 due 9/15;
2018.9.9 (lecture cancellation due to neighber's construction)
2018.9.15 (3h30m) jump statements, nested loops, analysis of algorithms (you may refer to this for further details), arrays;
2018.9.16 (3h30m) for-each loops, briefing data structures, sorting algorithms, searching algorithms, higher-dimensional arrays, methods; HW2: print n-row stars (see pp. 149-150 of the slides) and Lab 3 due 9/29;
2018.9.22 (no class in this long weekend)
2018.9.23 (no class in this long weekend)
2018.9.29 (3h30m) call stack, scope of variable, method overloading, recursion (also read recursion), classes & objects (also see what makes OOP ``good''?), fields and methods, encapsulation, constructors, this operator, static members;
2018.9.30 (3h30m) garbage collection, HAS-A relationship (aggregation) (memory and objects), IS-A relationships, inheritance, super, method overriding, (subtype) polymorphism, up/down casting, instanceof operator; HW3: Lab 4 and 5 due 10/6;
2018.10.6 (3h30m) (FYI) Oracle JDK Releases for Java 11 and Later; final variable/method/class, abstract class/method, interfaces, wrapper classes, immutable objects, enum types, namespace, nested classes, anonymous classes, iterators, packages, classpath, jar, assertion and exception handling, strings, regular expressions (see regex by Oracle, or regexone, regex crossword), file NIO (Chapter 10: File System), events, listeners, callbacks, Java graphics and GUIs, Java event handling, Java 2D games tutorial (see snake game);
2018.10.7 final exam; you can submit your solutions for all of homework and final exam problems until 10/14;

Sample code

Homework

Gradebook