ITM 200 Chapter 3: Chapter 3

69 views7 pages

Document Summary

Other kinds of java comments: another type of comment starts with /*" and ends with */ , this kind of comment can spread over 2 or more lines for detailed notes. Importing (reusing) code from other files: the line import javax. swing. joptionpane; is an import statement. this represents the main algorithm of the program. Command line output: program instructions are called statements, to make output move to a new line, you must include in the string the escape sequence. this declares a variable called age, of type int (integer) this is a box into which you are allowed to place integers (whole numbers: char letter; this declares a variable called letter, of type char (character) this is a box into which you are allowed to place characters: double distance; this declares a variable called distance, of type double.

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers
Class+
$8 USD/m
Billed $96 USD annually
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers

Related Documents

Related Questions