Download Lecture 4

Survey
yes no Was this document useful for you?
   Thank you for your participation!

* Your assessment is very important for improving the work of artificial intelligence, which forms the content of this project

Document related concepts
no text concepts found
Transcript
Lecture 4
February 10, 2000
There will be a Quiz
• February 17
– Last term, it was to write an application that
prints your name.
DOS Environment Variables
• Each variable has a name and a value
– Both parts are strings.
– The command interpreter and application programs can
find out the value (if any) of any variable.
• Use set to list and alter environment variables
• Examples
– PATH
• Value is a semicolon-separated list of directories.
• Used by the command interpreter to search for command files.
– CLASSPATH
• Value is a semicolon-separated list of directories.
• Used by JDK tools to search for class files.
Looking Things Up
• Using the JDK Documentation
– Using the Java API Documentation
– Using the Java Tools Documentation
Two Dimensional Arrays
• An array can have any number of
subscripts.
• Example
boolean[][] truth = new boolean[3][4];
truth
2D Array Sample Code
• [ TruthMatrix.java ]
– Download this program and experiment with it.
Exercise 2
• Due February 17
• Write a Java application that prints each of
the command line arguments on a separate
line on the console.