Getting Started
- 31 July 2015, Preface to Java Book
- 4 May 2018, Chapter 0 tells how to
get Java running and compiling on your box. In Mac/Linux
we will use the terminal to compile Java. In Windoze, we
will use the
cmd
window orPowerShell
.
Basic Core Java Syntax The newer versions largely contain corrections on spelling and some minor edits.
- 5 May 2018, Chapter 0 is a guide to getting Java up and running on your lappy.
- 7 June 2018, Chapter 1 is an introduction to
the the interactive environment
jshell
and to Java's type system. - 25 July 2016, Chapter 2 introduces the ideas of classes and objects.
- 25 Nov 2016, Chapter 3 translates much of what you know about Python into Java.
- 20 Mar 2020, Chapter 4 This chapter does a complete case study for extended-precision fractional arithmetic. This new version adds a static factory for two longs and gets rid of a constructor obviated by this.
Swing Version The Swing Version chapters are here. As you know we are moving to JavaFX, so I am not going to continue to revise these.
- 8 Jan 2013, Chapter 7 Look at the Tricolor case study with inner classes! This part of the chapter is completely redone. Your comments are welcome. This chapter explains how to use inner and anonymous classes on GUIs. These can shorten and simplify your code.
- 8 Jan 2013, Chapter 8 explains exception handling, and includes a color calculator case study.
- 8 Feb 2013, Chapter 9 explains text file IO, and
demonstrates how to do IO with images. The code in
ImageFrame.java
had a syntax error, which has been extirpated. - 8 Jan 2013, Chapter 10 This is the Nitpad case study.
- 22 Jan 2013 Chapter 11 This is the UniDraw case study. It contains complete coverage of object output and input streams and serialization. This covers everything but the final creation of the menus. Both saving and retrieving from a file are present.
JavaFX Version These are the JavaFX versions. They are being built live. They are subject to change. This is what we are currently using at NCSSM. These are updated as of 25 December 2016.
- 20 Mar 2020 j5FX.pdf This chapter introduces inheritance, interfaces, and abstract classes. It covers the basics of the JavaFX scene graph and illustreates simple event handling using Java 8 lambdas. The latest version got some minor editorial changes.
- 13 Dec 2019 j6FX.pdf The
- 8 May 2018 j7FX.pdf is the NitPad case study.
BallWorld
case study has undergone a major facelift.
All shapes now have serializable state.
Materials for CS 428
- 29 Mar 2019Chapter 12 This chapter is about Java Collections and generic "from the inside." We first explain how the mechanism of generics works. We the build a link-based stack class and then you will write a link-based list class using the techniques you see. We will then re-implement a stack as an array-based structure and then build an array-based list. These classes are built from scratch. Upcoming You will also build an HP-style RPN calculator that can use either of the link-based or array based stacks we have built for the calculator's internal stack. Since the interfaces are identical, both will do the job!
- 29 Mar 2019 Chapter 13 Sorting, Searching, and Shuffling.
- 1 Apr 2019 Chapter 14 Collections, Comparators, Comparable and Sorting. This is brand-new. Get yours today! Note that it is "live" and will receive several revisions in April 2019
- 11 Mar 2013 Chapter 15 This chapter is about the analysis of algorithms. In it searching, sorting and big-O are discussed. Get yours today!
- 16 Apri 2018 Java Streams