COP 2800
Java Programming I

Java Programming I Syllabus
View Weekly Course Schedule Other interesting links:

Resources  (examples, ...) - The source for the Java SE JDK, and more.
On-line version of the Java 8 JDK docs.  ( Java 8 API docs.) - links to all official Java documentation, including references, guides, and tutorials.
on-line Java Language Reference - Great explanations of language features.
on-line Java Tutorials - Excellent tutorials on all topics, including sample code.
Download the JDK.  After downloading and then running the installer, you need to set the PATH environment variable.)
Supplements for the Liang text

What would the world be like without Java?  View the Javapocalypse (YouTube video)


Fall 2017

Course policies
Time & Place: Ref No. 95896:  Tuesday, Thursday, 4:00–5:15 PM, Dale Mabry Room DTEC–427
Ref No. 87513:  Tuesday, Thursday, 7:00–8:15 PM, Dale Mabry Room DTEC–427
Instructor: Name:  Wayne Pollock
E-mail:  Internet:
Office & Phone:  DTEC–404, 253–7213
View my Office Hours.
Skype ID:    
Homepage URL:
Text: Liang, Y. Daniel, Introduction to Java Programming, Brief Version 11th Edition ©2018 Pearson/Prentice-Hall:
ISBN-10: 0-13-461103-9,   ISBN-13: 978-0-13-461103-7

HCC bookstore on-line

Note there may be a possibly cheaper international edition.  Despite vendors claims, the content is not always exactly the same.

Description: (This course is 3 credit hours long.)  “Introduces programming in Java.  This course will cover the basic features of Java, including procedural programming (datatypes, variables, operators, control structures, etc.), an introduction to object-oriented programming concepts (objects and classes, abstraction, encapsulation, and inheritance), GUI programming, error handling with exceptions, and other Java technologies.”

The class format will be lecture and discussion; class participation is strongly encouraged.  In addition, there will be numerous examples and some in-class group programming exercises (model solutions to these and all projects will be provided.)

Students are expected to prepare for each class by completing all reading assignments, reviewing examples and model solutions provided, and practicing programming outside of class.  (This is important — you can't learn a skill such as Java programming only by attending class and reading a book.  You must practice, practice, practice, several hours each week!  If you won't have enough time available, consider auditing the course.)

Objectives: “After completing this course, the student will be able to:
  1. Explain what software development is, the unique features, history, and appropriate uses of Java, and identify Java learning and reference resources.
  2. Understand the use of programming tools such as editors, compilers, API>(Java Doc) documentation, and IDEs, to enter, compile, package, and execute small Java programs.
  3. Understand the fundamentals of Java programming, design, testing, packaging, and documentation, and perform related tasks.
  4. Describe and demonstrate basic Java programming concepts, including numeric data types (and their uses, operations, and pitfalls), expressions and operators, variables and constants, scope, packages, control structures, input and output (console and GUI), and other procedural programming elements.
  5. Discuss and use object-oriented programming concepts including classes, objects, abstraction, encapsulation, generics, inheritance, overriding (polymorphism), abstract classes and methods, interfaces, nested and inner classes, exceptions for error handling, and lambda expressions.
  6. Select and appropriately apply some elements of the standard Java library, including strings, regular expressions, GUI components, collections, arrays, dates and times, math utility classes, and other utility classes.
  7. Identify and discuss the basic Java memory model elements, including the stack, the heap, object references, and garbage collection.
  8. Understand the basic concepts of sorting and searching (linear and binary searching), Big-O notation, and recursion.
  1. Understand what programming is, and the unique features of Java
  2. Understand the use of programming tools such as editors, compilers, API (JavaDoc) documentation, and IDEs
  3. Understand the importance of proper program style, and be able to write programs using an acceptable style (including naming conventions and indenting)
  4. Understand the importance and use of comments
  5. Understand the differences between an applet and a stand-alone program
  6. Understand the proper use of “import” statements
  7. Understand basic GUI programming concepts: a Graphics object, drawing methods, and the coordinate system
  8. Understand basic (primitive) data types, their uses, literals, and how object types differ from primitive types
  9. Understand the differences and considerations of using integers and floating point numbers
  10. Understand variables, including declaring, initializing, and using them
  11. Understanding the difference between local, class, and instance variables
  12. Understanding expressions and mathematical operators (+, –, *, /, %, ++, ––, etc.), including the concepts of precedence and associatively
  13. Understand assignment statements and assignment operators
  14. Use math functions from the java.lang.Math class
  15. Understand type promotion and type conversion
  16. Understand the use of Strings and String literals in Java, including concatenation
  17. Understand Boolean expressions and operators
  18. Understand and select appropriate control structures (if-statements, nested if statements, if-ladders, switch statements, the :? operator, the while, do-while, and for loops, and the break and continue statements)
  19. Understand testing for equality for floating point and for objects (especially Strings)
  20. Understand the basic use of Exceptions and try-catch-finally blocks
  21. Understand different methods of console input and output (PrintWriter, printf, and Scanner class), and simple GUI input and output with JOptionPane)
  22. Understand the purpose of methods, when to create them, invoking them, passing arguments and returning values from them
  23. Understand method overloading and the concepts of a method signature
  24. Understanding basic memory use in a program: the stack and the heap
  25. Understand the concept and use of a program exit status (program return code)
  26. Understand the concept of recursion
  27. Understand the concepts of scope and persistence (or lifetime)
  28. Understand the issues of scope and initialization for local variables, class variables, and instance variables
  29. Understand, create, initialize (using constructors and the role of a class loader), and use objects and classes
  30. Understand basic Java modifiers (public, private, final, static, ...)
  31. Understand how to create and use packages
  32. Understand how to create JavaDoc web page documentation
  33. Understand and use StringBuilder (and StringBuffer), tokenizers, and regular expressions
  34. Identify deprecated classes and methods, and how to migrate from them
  35. Understand and use arrays and 2-dimensional arrays
  36. Understand the basic concepts of sorting and searching (linear and binary searching)
  37. Understand how to use command line arguments
  38. Understand and use object-oriented programming concepts including inheritance, overriding (polymorphism), abstract classes and methods, interfaces, and nested and inner classes, lambda notation, functional interfaces, and method references
  39. Work with dates and times in Java
  40. Understand and use basic collections such as ArrayLists, Sets, and HashMaps
  41. Understand and explain graphic user interface concepts including: event-driven programs, event handlers (listeners), graphic components, fonts, and differences between graphic toolkits such as AWT and swing
  42. Understanding how to use (and when to not use) layout managers
  43. Understand applets and related concepts including applet security, lifecycle (or milestone methods), and HTML needed
  44. Understanding basic multi-media (adding audio and graphics)
  45. Understand how to create and use Java Archive files (JARs)”
Prerequisite: COP 1000, or permission of the instructor.  Students enrolled in a degree or college credit certificate program must complete all prerequisites.  Note!  HCC registration computers may not check for prerequisites before allowing you to enroll.  Be certain you have all required prerequisites or you won't have much of a chance of success.  Also you may be dropped from the class.
Facilities: All assignments can be performed on any computer that supports the current version of the Java development kit (JDK).  You can obtain Oracle's “JDK”, including all tools and documentation, for free from  You may use any other Java development tools too if you prefer, such as eclipse.  Note that BlackBoard is not used for this course.

You will need your own flash disk (preferably USB-3 compliant), writing materials, and Scantron 882–E or 882–ES forms.

You can use HawkNet (WebAdvisor) to obtain your final grade for the course.  You can use your assigned Hawkmail (Hawkmail365) email address if you wish to discuss your grades via email.  (Note, it may be possible to setup your Hawkmail account to forward all received emails to some outside email account; but you still must send mail from Hawkmail to discuss grades.)

Most college systems now (or will in the future) use a single sign-on user ID, known as HCC “NetID”.  Visit to register and to update your credentials.  (Your initial password is your uppercase first name initial, lowercase last name initial, and your seven digit student ID number.)  Note, the quickest way to resolve login issues is the HCC Live Web Portal (

The college provides wireless network connections for students and guests on Dale Mabry campus.  For students, select the network “HCC_Wireless” from the list of available networks.  Follow the on-screen steps by entering your HCC email address and network password.  For HCC guests: Select “HCC_Guest” from available networks.  Follow the on-screen steps to complete registration.  This network will be available between 7:00 AM and 10:00 PM.  These are the only official HCC networks; don't use others that may appear.

Hawk Alert text messaging service allows you to receive important information regarding campus closures or emergencies.  You may also sign up for financial aid notifications and registration and payment deadlines.  This is a free service, although some fees may be applied by your cellular service provider or plan for text messages.  To sign up, or for more information, visit

HCC DM Open Lab

Computers with JDK (and other tools, such as Eclipse) are located in the computer science department open lab, in DTEC–462.  Lab hours are:

Dale Mabry campus open lab hours
Monday – Thursday8:00 AM to 10:00 PM
Friday 8:00 AM to 4:30 PM
Saturday 8:00 AM to 2:30 PM

(Note:  Lab technicians (“Lab Techs”) are not teaching assistants or tutors, and shouldn't be expected to help you with your coursework.)

Rules for Using HCC Facilities

  1. No food or drinks in classrooms or labs, especially near computer equipment.
  2. Students bringing their own laptops need to use the wireless network only.  Students cannot disconnect network cables from classroom's computers to connect their personal devices.
  3. Students are not allowed to disconnect monitors or computers to power their personal equipment.
Grading Policy
3 equally weighted closed-book multiple choice exams     50%
Programming projects (about 6): 36%
Homework assignments (about 7): 14%
Classroom participation: +5%

Grading scale:  A=90-100,   B=80-89,   C=70-79,   D=65-69,   F=0-64
(You can elect to “audit” the class during the add/drop period.)

  • Course format is interactive lecture, with most projects done outside of class.
  • No make-up exams will be offered without the prior approval of the instructor.  If a make-up exam is offered, you can take the exam in my office during my regular office hours, or from the Dale Mabry Testing Center.  (Check for their hours of operation, and make sure to give yourself sufficient time to complete an exam.  You will need to make an appointment to schedule a make-up exam.)
  • Exams will be closed book and closed note multiple choice exams.  While the exams are non-cumulative, each does build upon knowledge acquired earlier.  Exams are based mostly upon material presented in class.  However some questions may be from assigned readings (the textbook and on-line resources).
  • Exams will only cover material discussed in class or assigned as reading, before the exam.  Should the class fall behind the course schedule, some topics shown on the syllabus due for an earlier exam will be tested on the following exam instead.
  • The schedule for the final week of the term may cause a conflict between our class schedule and another class's final exam.  It is up to you to determine if you will have a conflict, and to bring it to the attention of your instructor, so that appropriate arrangements can be made.
  • Regular attendance is imperative for the successful completion of this class.  The textbook and on-line resources should be considered as required course supplements; in other words, the course is not based on the text.
  • All phones, pagers, and beepers must be turned off during class time, except with prior permission of the instructor.  No food or drink is permitted in HCC classrooms.
  • Attendance will be taken within 5 minutes of the start of class; after 4 unexcused absences and/or lateness, the student will lose 2 points off the final grade for each additional occurrence.
  • If you miss a class, you are still responsible for the material covered in that class.  All students should exchange contact information (name, email address, phone number) with at least one other student in the class.  If you must miss a class, you should then contact another student and request they take class notes for you.  (Note, Hawknet has Hawkmail365 email for HCC students.)
  • Credit for class participation includes attendance, preparedness, and adding to class discussions by asking questions and participating in discussions.  Playing computer games, surfing the Internet, or working on assignments for this or other classes during class time will lose you credit.
  • Additional time outside of class will be required.  For typical students an average of between 8 and 12 hours each week outside of class are required for preparation, practice, projects, and homework assignments.
  • Students are expected to prepare for each class by completing all reading assignments (including “common errors”, “advanced topics”, and all other sidebar material in the assigned chapter), reviewing examples and model solutions provided, and practicing outside of class.  This is important — you can't learn a skill such as Java programming only by attending class and reading books.  You must practice for several hours, a few days each week!  If you won't have enough time available, consider auditing the course.
  • Students are expected to check the class website regularly.  Any syllabus changes, class cancellations, project assignments, and homework assignments are announced in class and posted to the website and the RSS feed for this class.
  • A student shall not, without my express authorization, make or receive any recording, including but not limited to audio and video recordings, of any class, co-curricular meeting, organizational meeting, or meeting with me.  Further, you do not have my permission to post on the web or otherwise distribute my class lectures and other course materials.  (You can distribute freely any materials I make publicly available from the HCC (or the website, without asking permission, provided you give me credit for the work and don't alter it.  Any other use will require expressly given permission.)
  • Working together on individual assignments is considered as cheating!  Turning in someone else's work without giving them credit is also considered cheating (plagiarism).  Cheating will result in an automatic F (zero) for the project for all parties.  Also, you can only earn credit for your own work and not someone else's, even if you do cite your sources.  It is okay to ask a fellow student for class notes (in the event you miss a class) or for help in understanding the text or material given to the class (e.g., examples on the class website).  You are encouraged to study together as well.
  • Because you can learn a lot from your peers, both in the class and in the broader community, I encourage collaboration with both.  However, do not mistake this as a license to cheat.  It is one thing to learn from and with your peers; it is another to pass their work off as your own.  With respect to writing code for this class:
    • You are expected to document any collaboration that takes place.
    • Absolutely no electronic transfer (or other copying) of code between students is permitted.
    • Any code that you “find” on the Internet must be cited, with an active link to that code.
    • While you are encouraged to engage in conversations in online forums, under no circumstances are you permitted to solicit other individuals to complete your work for you.  (So, no posting programming assignments or homework questions and asking for answers.)
    • Ultimately, YOU are responsible for all aspects of your submissions.  Failure to be able to explain and defend your submission will be treated as a violation of academic integrity.
  • You must abide by the HCC Acceptable Use Policy (AUP) for computers and services.  In particular, you must not run network scanners, or attempt to obtain administrator (“root”) privileges or otherwise disrupt HCC computers and services.
  • You must follow the academic honesty policy and the student code of conduct for HCC.  A second cheating offense will result in an “F” for the course, and your name will be turned over to the dean for further handling.  I take these matters very seriously.  You have been warned!
  • Every effort will be made to stick to the weekly schedule for our course.  However it may happen that we will fall behind the schedule at some point.  If so, no topics will be skipped.  Instead we will attempt to catch up over the following weeks.
  • Please be aware that if we fall behind on the weekly schedule, the topics discussed may not match what shows on the syllabus.  The weekly schedule may (but probably won't be) updated in this case.
  • In case we do fall behind, homework assignments are automatically postponed until the next class (i.e., homework assignments that show on the schedule as due the same day we discuss some topic, will be due the day we will discuss that topic in class).  Projects and exams will not be automatically postponed.  Should your instructor deem it necessary, projects and exams may be rescheduled; this will be announced in class and on the RSS feed.
  • Communications Policy:  I will respond to your emails within 48 hours or two business days.  HCC policy is that grades can only be discussed in person during office hours, or via email only if you use your assigned HCC HawkNet (Hawkmail365) email account.
  • No appointment is necessary to see me during my scheduled, on-campus office hours.  You can just “walk-in”.  You can make appointments for other times as long as I'm available.
  • Occasionally my office hours will be canceled on short (or no) notice, for example if the dean calls me for a meeting.  Before driving out to campus just for my office hours, you should contact me the day before to make sure I still plan to be there.
  • Late Policies:  Late assignments (homework assignments, projects, or exams) generally will not be accepted.  An assignment is late if not turned in by the start of class on the day it is due.

    Late assignments will be accepted late only if you obtain the instructor's permission prior to the due date of the assignment, or for a documented serious medical reason.  All late assignments are subject to a late penalty of at least one letter grade (10%) regardless of the reason for the delay.

    Projects and homework assignments later than one week will receive a more severe late penalty; very late assignments without adequate excuses will receive a grade of “F” (0).  However if you have a very good reason your instructor may waive any or all of the late penalty.  (Examples of good reasons include extended illness that prevents working, being out of town for work, or military service.  Remember, documentation will be required.)

  • The dangers of the flu or another contagious disease require some changes to normal policies.  HCC has implemented the recommendations for institutions of higher learning of the CDC.  (See and for guidance from the CDC.)  You won't need documentation if you miss class due to the flu.  (But if you think you have the flu, you should see a doctor as soon as you can.)  In the unlikely event of a school closure due to the flu, some plan to make up the missed work will be made.

    If you think you have the flu, stay home.  Do not come to HCC until 48 hours after your fever has broken as you are still infectious.  Also, people are infectious to others for a day or so before they have any symptoms.  Flu is spread by touching doorknobs, computer keyboards, railings on stairs, etc., that were touched by someone with the flu.  Avoid shaking hands; use the “fist shake” (touching of fists) if you must use a physical greeting.  The most effective way to avoid catching the flu is to wash your hands frequently, especially after touching something that was touched by others.  Avoid unnecessary touching of eyes, nose and mouth.  While not as good as properly washing hands, hand sanitizers have been installed throughout the campus; use them often.

Projects: Projects will be assigned from the class web page at various times.  You will have sufficient time to complete the projects, at least a week but usually two or more weeks.  Although there will be in-class group exercises, you must work individually on the projects, typically outside of regular class hours.

Programming projects are graded according to their design (25%), how well they compile and run (20%), how well your project meets the requirements specifications (20%), the coding style (15%), the amount (and quality) of your comments (10%), and your creativity in extending the project usefully, or an innovative design that uses the features taught in class well, etc. (10%).

Projects are not graded when turned in.  They are graded all at once, sometime after the project deadline has passed (usually the following weekend).  Further details will be provided with your first project.  (See also submitting assignments below.)

Homework assignments are assigned from the class web page at various times.  These questions came from the text; some may be based on required on-line readings.  (The author does have end of chapter multi-choice quizzes on-line, for self-study purposes.  There is a link in the class resources, below.)

You are encouraged to work together in small groups (two or three people) for the homework assignments, provided the names of all who worked together are listed.  Each student must still submit their own copy (so everyone gets feedback).

Homework assignment questions are intended to focus your studying of the readings and to stimulate class questions and discussion.  For this reason, they are generally due before the class where that material is covered.  It is not intended that students can answer all the questions assigned, but you must show you have thought about the questions and read the required material in order to earn a “B” grade or higher.

Submitting Assignments: All assignments (except when noted) should be submitted by email to .  Please use a subject such as “Java I Homework Assignment #1 Submission”, so I can tell which emails are submitted work.  Send only one assignment per email message.  Email your Java source files and HTML files (if any) by copy-and-paste.  (Please do not send as attachments, except when noted in the assignment directions.)  Note: If you use Microsoft Outlook Express or a similar email program, please be aware that this program has a “feature” that automatically converts slash-slash (“//”) comments in your email to “FILE://”.  Make sure your Java (and other) source is correct before you send the email!  If possible, use the “text” and not the “HTML” mode of your email program.

In the event a student submits more than once for the same assignment, I will ignore all but the last one received up to the deadline.  Assignments submitted after the deadline will not count toward your grade except as allowed by the course late policy.  Also, you cannot resubmit an assignment once it has been graded.

The HCC email server automatically accepts and silently discards email with certain types of attachments.  If you must send email to my HCC email account please avoid using any attachments, and especially “zip” files.  To send email with a “.zip” attachment, you must first rename the file extension to “.zap” and then send the renamed file as an attachment.

To avoid having your submitted work rejected as “spam”, you can use Hawkmail365 to send email to professors.  (This doesn't always work either!)

If you have an email problem, you may turn in a printout instead.  Be sure your name is clearly written on the top of any pages turned in.  Please staple multiple pages together (at the upper left).

Always keep a backup copy of your submitted projects, until you are certain they have been received and graded correctly.

Academic Calendar
HCC Academic Calendar:
Classes Begin: Monday  8/21/2017   (First class meeting: Tuesday 8/22/2017)
Add-Drop Ends: Friday   8/25/2017
Orientation period Ends: Tuesday   8/29/2017
Last Day to Withdraw:  Friday  10/27/2017
Classes End: Tuesday  12/12/2017  Saturday  12/16/2017 
Grades Available:  Thursday  12/14/2017  Monday  12/18/2017  (from Florida Virtual Campus or from HawkNet)
HCC is closed on: Saturday–Monday  9/2/2017–9/4/2017 (Labor Day),
Thursday–Sunday, 9/7/2017–l9/17/2017 (Hurricane Irma),
Tuesday  10/24/2017 (All-College Day),
Friday–Sunday  11/10/2017–11/12/2017 (Veterans' Day),
Saturday–Sunday  11/11/2017–11/12/2017 (Veterans' Day),
Thursday–Sunday  11/23/2017–11/26/2017 (Thanksgiving Holiday)

Consequences of Dropping or Withdrawing

Dropping or withdrawing may have an impact on financial aid, veteran’s benefits, or international student visa status.  Students are encouraged to consult with a financial aid, the VA certifying official, or the international student advisor, as appropriate, prior to dropping or withdrawing from class.

Requests For Accommodations

If, to participate in this course, you require an accommodation due to a physical disability or learning impairment, you must contact the Office of Services to Students with Disabilities, Dale Mabry campus: Student Services Building (DSTU) Room 102, voice phone: (813) 259–6035,  FAX: (813) 253–7336.

HCC has a religious observance policy that accommodates the religious observance, practices, and beliefs of students.  Should students need to miss class or postpone examinations and assignments due to religious observances, they must notify their instructor at least one week prior to a religious observance.


Quotes on learning
Quotes:         Tell me and I'll listen.
Show me and I'll understand.
Involve me and I'll learn.
    — Lakota Indian saying
        Learning is not a spectator sport!     — Chickering & Gamson

Course schedule for COP 2800

Day by day course schedule
Tue       Thu
Topics, Assigned Readings, and Assignment Due Dates
  8/22   8/24   Course introduction, LAN use.  Open Lab procedures and hours.  Role of lab techs.  Java overview.  Computer, Compiler basics, JDK tools (and installation), edit-compile-run cycle.  First Java program, console output.  OOPS, programming basics (comments, use of white-space, program style, main method, common errors and messages).
Readings:  Chapter 1, 2.16, Soft Skills
  8/29    8/31   [Bucs game at home Thursday 8/31 @7:30 PM.  Expect traffic delays, public bus schedule changes, and parking problems.  Parking passes will be distributed in class prior to game day.]
Using import and packages.  Using Java API docs (and deprecation).  Simple GUI programs, basic graphics (coordinates, Graphics class methods: drawXXX, fillXXX, and setXXX).  Using Font and Color classes.  Newer Graphics2D methods.  Syntax, Logic, and Runtime errors.
Readings:  Page 38 (import);  Chapters:  1.11, On-line Java docs (just learn how to navigate the site), and Java program style, Oracle tutorial: Getting Started with Graphics
  9/5   Declaring variables, identifier naming rules.  Data types.  Differences between Java primitive numeric types and object references.  Big numbers.  Using static final for constants.  final for primitives versus for object references.
Readings:  Chapters 2.1–2.10, 10.9
  9/2 (Mon)   Labor Day  —  HCC Closed
  9/7 – 9/17 HCC closed due to hurricane Irma

[Bulls game at home Thursday 9/21 @8:00 PM.  Expect traffic delays, public bus schedule changes, and parking problems.  Parking passes will be distributed in class prior to game day.]
Expressions.  Common logic errors: over- and under- flow, floating point comparison, rounding errors, and object comparison.  Converting types (cast).  Auto-boxing, wrapper classes, object assignment and defining immutable classes.  Using static methods of java.lang.Math and java.util.Random.  Unicode.  Working with Strings and StringBuilder.
Readings:  Chapters 2.11–2.18, 3.7, 4, 10.8, 10.10, 10.11
Homework Assignment #1 due 9/21

Regular Expressions.  Formatted output (PrintWriter, printf).  Console input with Scanner (tokenizing).  Simple GUI input and output with JOptionPane.
Readings:  Chapter 2.3, Regular Expression Summary and resources, Appendix H (regular expressions), JOptionPane (PDF of Liang supplement III-AB)
Project #1 due 9/28

[Bucs game at home Thursday 10/5 @8:25 PM.  Expect traffic delays, public bus schedule changes, and parking problems.  Parking passes will be distributed in class prior to game day.]
Control structures: block statements, if statement, selection operator, switch statement.  Boolean expressions, operators, and review comparing integer, floating point, and object values (especially String).  The null value.  Loops: while, do, and for.  The break and continue statements.
Readings:  Chapters 3, 5
Homework Assignment #2 due 10/5
  10/10     Exam #1

  10/17    10/19  
Methods (a.k.a. functions): calling, returning values, passing parameters.  Pass by reference versus pass by value.  Method signatures and overloading.  Getters and setters (accessors and mutators) methods, for JavaBean standard.  Design guidelines for methods: structured programming, testing, and good comments.  Scope and lifetime: local, instance, and class variables.  Access modifiers.  Memory concepts: stack, heap, review garbage collection.  Recursion overview.
Readings:  Chapter 6, 9.8, 9.10, 9.13
Project #2 due 10/12
Homework Assignment #3 due 10/19
10/24    10/26 Object concepts: construction of objects (constructors, classLoader, initialization of local, instance and class (static) variables, and of objects.  The this reference.  Garbage collection and finalizers.
Object-orientation, design and implementation of classes.  Abstraction and encapsulation.  Object properties (a.k.a. fields, attributes, columns, instance variables) and class properties.  Adding a test driver to classes.  Immutable objects.
Readings:  Chapters 9, 10
Project #3 due 10/26
  10/31 Overview of Exceptions (and try – catch – finally); checked and unchecked exceptions.
Readings:  Chapters 12.1–12.6
Homework Assignment #4 due 10/31
  10/24   Faculty In-Service (All-College) Day  —  HCC Closed

Arrays: declaring, using, initializing.  for-each loops with arrays.  Using partially filled arrays.  linear search, sorting, binary search, complexity and “big O” notation.  2-d arrays.  Copying arrays with clone and System.arraycopy.  Shallow versus deep copy.
Using command line arguments.
Readings:  Chapters 7, 8.1–8.3

Creating and using packages, CLASSPATH.  Creating and using Jar files.  Commenting classes with “doc” comments and using the javadoc tool.
Readings:  Chapters 8.6, 8.8, Appendix D (“Java modifiers”), Packages (PDF of Liang supplement III-E), Using jar, Javadoc (PDF of Liang supplement III-Y) Javadoc lecture notes
  11/16     Exam #2
[Bulls game at home Thursday 11/16 @8:00 PM.  Expect traffic delays, public bus schedule changes, and parking problems.  Parking passes will be distributed in class prior to game day.]
  11/21   OOP concepts: Inheritance, super, polymorphism (overriding, Early and late binding), instanceof, super.
Readings:  Chapter 11
Project #4 due 11/21
11/11   Veterans' Day  —  HCC Closed
11/23   Thanksgiving Holiday (Thu 11/23 – Sun 11/26)  —  HCC Closed
11/28    11/30   Interfaces, Abstract classes and methods.  Nested, inner, and anonymous classes.  Lambda expressions and method references.
Readings:  Chapters 13, 15.4, 15.5, 15.6, Lambda Expressions lecture notes
Homework Assignment #5 due 11/30
12/5     12/7 Dates, Calendar, timestamps.  ArrayLists, overview of other collections (Sets and HashMaps).
Readings:  Chapters 13.4, 11.11, 11.12, Java Date & Time Lecture Notes, Oracle Date-Time Tutorial
Homework Assignment #6 due 12/5
Project #5 due 12/7
  12/5   Event-driven, graphics programming with AWT and Swing.  Brief JavaFx overview.  Events, listeners (handlers), components, and containers.
Readings:  Chapters 15, 14.2, AWT Tutorial (archived copy), Oracle swing Tutorial, Event handling in AWT and swing
  12/12   Finish material, review.
(Time permitting: GUI overview.)
Homework Assignment #7 due 12/12
  12/14     Exam #3
Project #6 due 12/14

course resources
How to ask smart questions online Good advice for asking for help from online forums     StackExchange A good place to ask questions or search for your question since someone has probably already answered it here  (See also StackOverflow)
Computer and Programming Overview Programming background information     Photo of PDP-11 console The old way to enter programs was via switches on a console
Windows Shell A tutorial for using the Windows command line     PC hardware (svg) A graphic showing the components of a modern personal computer
Assembly Demo Shows a C program with its assembly and machine code (in hex)     Soft Skills Discusses certifications, job interviewing tips, and required non-technical skills needed to find and keep a job Tampa Bay area Java Users Group     Thinking in Java A free (PDF) book by Bruce Eckel
Java Glossary A Java FAQ with lots of answers     TIOBE Index Programming language popularity index, updated monthly Online Java Magazine, many good articles in their archives Book reviews, sample code, practice certification exams, tutorials, and more; geared for beginners
Java Developer Tutorials On-line tutorials and links for training, from Oracle Another good Java beginner site featuring reviews, samples, tutorials, and more Online and interactive Java tutorials Online and interactive Java (and Python) tutorials A large collection of OO tips, techniques, and design patterns     Java Certification Programs Information about Oracle's Java certifications
Oracle Certified Associate (OCA) exam topics Shows what topics you need to know for this certificate     Oracle Certified Professional (OCP) exam topics Topics for Oracle's higher-level Java certificate Traditional first program, non-GUI A first applet Shows creation and use of objects     How To Program A walk-through of a sample Java programming assignment
Java Program Style Guidelines on the correct style of Java program source code        
How to start a programming assignment Excellent advice from Patricia Shanahan  (See also her advice on Debugging Strategy)     How To Write Unmaintainable Code A humorous look at what not to do Shows simple GUI program An applet showing simple animation (bouncing hoops)
RAM Layout Graphic Compares primitive versus object reference variables     Static Fields An explanation of static versus non-static fields
Type Chart Java primitive types reference chart     Math Oddities A demo showing some tricky points of math in Java  (See also for demos of using floating point and loops)
Binary Number Chart Tutorial for octal, decimal, hex, and binary equivalents Shows formatting with the legacy java.text.* formatter classes Demo using java.lang.math.BigDecimal andBigInteger     Java operators A complete list of the operators in the Java language (not listed in precedence order however) Good site for basic math and algebra tutorials (something all technology workers need to know)     ASCII Collating Sequence A chart showing the ordering of ASCII characters
Unicode Symbols (jar) A few symbols, shown in a fancy swing application with a menu Lots of information about Unicode, including Current emoji chart or the Unicode character index
Java Regular Expression Summary See also java.util.regex.Pattern Tutorial for Java Regular Expressions  (See also, a library of useful regular expressions)
Regular Expression Class Notes (PDF) Lecture Notes for Java Regular Expressions     RegExLab.jar Download Java Regular Expression Lab  (View source) Using printf (or String.format) to format output Shows console input and output, including how to read passwords Shows non-GUI simple input with Scanner Shows simple GUI input and output using JOptionPane Shows skipping bad input with Scanner Shows a better way to use Scanner for interactive console programs Prints an input string in a box MsgBox, but uses a method MsgBox, but uses several methods Shows overloaded method resolution Illustrates different ways to invoke methods Demonstrates passing primitives and objects to methods
Java Modifiers A complete list of all Java modifiers How well do you know scope and lifetime issues? A simple demo of using recursion; compare with  (See also this Recursion tutorial) A Demo showing a stack overflow A demo of using recursion to see if the command line args form a palindrome Shows constructors Demo showing Java's default (no-arg) constructor Uses Scanner, averages How well do you know Strings? Shows catching and throwing of exceptions How well do you know try-catch-finally? Shows detecting a problem and throwing an Exception A stand-alone “21” card game  (To play, download TwentyOne.jar and double-click) Uses arrays, shows nums > ave A more realistic version of Demo showing how to make deep copies of arrays and other ojects (uses advanced techniques not covered in this course) Uses command line arguments Shows linear and binary searching algorithms     Big O notation in plain English A good explanation from  (Another explanation can be found at
2D Array graphic (PNG) Shows how 2-dimensional arrays look in RAM How well do you understand arrays?
PkgDemo Demo showing how to create & use packages  (See also Oracle's Java packages tutorial)     Javadoc Demo ( javadoc tool demo, on class Greeter with Java “doc” comments added.  (See also lecture notes on using javadoc)
finding classes in Java 8 How various Java tools find classes  (See also the documentation for CLASSPATH, including class path wildcards)     Javadoc Tool Manual Reference information on the Java 8 javadoc tool for Windows
JAR files revealed IBM DeveloperWorks tutorial on creating and using JAR (Java ARchive) files     jar command Reference for the jar command (Windows version), showing options and use  (See also the JAR file specification for details on the manifest file) Demonstrates inheritance Shows overriding, polymorphism Shows order of constructor calls under inheritance An illustration of polymorphism Shows abstract classes & methods The gory details of polymorphism: how it works under the hood Shows when a method is overloaded not overridden Shows “shadowing” of instance variables Shows overriding (polymorphism) and hiding with Java inheritance Shows shadowing with nested and inner classes Shows interfaces and more How well do you know how inheritance affects scope? Shows simple anonymous inner class use Shows how to use inner classes Demo showing anonymous local class use Shows trivial example of (lambda) function use     Lambda Notation (PDF) Lecture notes for lambda notation and method references Demo showing a lambda function to convert Radians to Degrees     Lambda Expressions Oracle's official Tutorial Shows Dates, Times, and Calendars     Java Date and Time Lecture Notes Covers both the old API and the new (since Java 8) API Shows fields in Calendars Shows ArrayLists, Maps, and other features added since Java 5 Shows the new (since Java 8) java.time packages Shows using Sets to de-duplicate a List
Java AWT Tutorial Official Java tutorial (Taken down in 2013, but resurrected using the Internet Archive)     Swing Tutorial Official Java tutorial on swing; you can skip the NetBeans section  (See also IBM DeveloperWorks swing tutorial, and the swing tutorial)
Event Chart GUI event handling tutorial; shows Events, Listeners, and useful methods Simple AWT runnable JAR showing event handling  (Download EventDemoAWT.jar) Simple Swing runnable JAR showing event handling  (Download EventDemoSwing.jar) Shows windows and events A pop-up window, mouse events Shows Window controls and events Shows the effect of using Container.pack() Shows mouse events  (See also Applet, shows almost everything GUI Shows some features of Swing buttons     Font concepts Explains font terms and concepts used in Java Shows how to use Menus     Standard Windows Keyboard Shortcuts Part of Microsoft's user interface design guidelines  (scroll down to “General Shortcut Keys for Applications”) Shows the difference between heavyweight and lightweight Components Shows what happens when AWT heavyweight components overlap Interest Caclulator with Swing “PLAF” demo Shows painting differences with heavy and lightweight Components, with wallpaper
Java tutorial: Using Layout Managers Shows how to position and size components in various ways     JavaPoint Layout Manager Tutorial Another decent tutorial (more pictures) Shows Buttons, events, and layouts (Applet) Development version of Shows multi-window fancy GUI Tic-Tac-Toe (applet) Full multimedia applet Use of Jar files (Applet displays a GIF) Multimedia Swing applet (See also this Smile Swing Applet - ImageIO version)     UIDemo AWT user interface demo
PlaySnd Play sounds without showing controls or pre-loading.  (Shows how Java and JavaScript can interact.) Media demo app, in a clickable Jar file
DiningPhilosophers Sun's DeadLock Thread Demo     Sort algorithm race Multi-thread Sorting Demo
Greeter — Threads Multi-threaded demo using     Swing image demo Demo showing how to load an image from a JApplet Simple animation (GUI) A “flicker-free” version of Java 1.0 Applet game with source Guitar tuner Applet (sound demo), with source
Clock Applet Nice clock applet with many settable parameters Action game with Java 1.0 source Calculates MD5 Digests of files How to construct URLs to resources (in jars)
Model Solutions to Assigned Projects
LogoDemo.jar GUI application showing fancy 2D drawing     GuessingGame.class Simple number guessing game
TempConv.jar GUI Temperature conversion chart Displays a histogram (non-GUI)     TxtCrypt.jar A GUI program to encrypt text

[Valid RSS]

RSS iconXML iconRSS feed for this page

What is RSS?