CPS 1231 - Fundamentals of Computer Science

Textbooks:

Introduction to Java Programming:
Brief Version (7th Edition)

Y. Daniel Liang
Pearson/Prentice Hall, 2009

 

Comments and Style Discussion

Style counts!

Follow the good style conventions for code elements, layout, and commenting. For advice on Java style, investigate these resources:

David Gries; alternative versions: [1] [2]

an informed opinion (and links to others)

another informed opinion Place a comment block at the top of each method that you create. The block must give the assignment number and your name. The Javadoc commenting style is used for the comment block and tags. In-line comments with // and /* */ can be used throughout the program.

For example,

/**********************************
* Assignment 1: Welcome
*
* This program takes no input, and when executed,
* prints a “Welcome!” sting to the console.
*
* Course: CPS 1231-01
* @author Amelia Earhart


Brookshear Slides:

Chapter 0 - Introduction

Chapter 1 - Data Storage

Chapter 2 - Elementary Programming

Chapter 3 - Selections

Chapter 4 - Networking and the Internet

Chapter 5 - Algorithms

Chapter 6 - Programming Languages

Liang Slides:

Fundamentals of Programming

Chapter 1 - Introduction

Chapter 2 - Primitive Data Types and Operations

Chapter 3 - Selection Statements

Chapter 4- Loops

Chapter 5 - Methods

Chapter 6 - Arrays

Object Oriented Programming

Chapter 7 - Objects and Classes

Chapter 8 - Strings and Text I/O

Chapter 9 - Thinking in Objects

Chapter 10 - Inheritance and Polymorphism