Comments

A program should be documented so that anyone looking at the code could understand how it is supposed to work. Documentation simplifies debugging and permits other programmers to use the methods defined in the program to write their own program.

To document a program, the programmer adds comments to the code. Comments are ignored by the compiler. Java permits three kinds of comments.

Home

Calendar

Coursework & grading

Assignments

Lecture notes

Other resources


IU home

IU CS home

Contact instructor