CS 110 Computer Science (JAVA I)

Taught: Fall 2007, Fall 2008, Fall 2009

Grambling State University, Louisiana, USA
Grambling State University, Louisiana, USA


We start this course by providing background information on computers and programming languages. Chapter 1’s goal is to provide a conceptual foundation of programming languages. Concepts of classes and objects are first introduced in this chapter. The process of editing, compiling and running a Java program is covered in chapter 2. Variables, constants, and expressions for manipulating numerical data are introduced in chapter 3. The creation of user-defined classes is covered in chapter 4. Constructors, visibility modifiers (public and private), local variables and passing data to methods are explained in this very chapter. In chapter 5, we present the selection statements if and switch. We explain how objects are compared by using equivalence (==) and equality (the equals and compareTo methods). Chapter 6 explains the repetition statements, while, do-while, and for. Pitfalls of these repetition statements are also covered in this chapter. Chapter 7 covers the second part of creating programmer-defined classes. Chapter 8 teaches exception handling and assertions. This chapter allows the construction of more reliable code. Finally, we cover the concept of “Arrays” of primitive data types and objects in chapter 10. We show how arrays are passed to methods in this chapter.



C. Thomas Wu, An Introduction to Object-Oriented Programming With Java, 4th Edition, Mc Graw-Hill, © 2006


Course Materials

Chapter 1
Chapter 2
Chapter 3
Chapter 4
Chapter 5
Chapter 6
Chapter 7
Chapter 8
Chapter 9
Chapter 10