Computer Science Fundamentals (CS153 2003S)
[Skip to Body]
Primary:
[Front Door]
[Current]
[Glance]
-
[EC]
[Honesty]
[Instructions]
[Links]
[Search]
[Syllabus]
Groupings:
[EBoards]
[Examples]
[Exams]
[Handouts]
[Homework]
[Labs]
[Lab Writeups]
[Outlines]
[Readings]
[Reference]
ECA:
[About]
[Grades]
[Quizzes]
[Submit Work]
[Change Password]
[Reset Password]
Misc:
[Experiments in Java]
[Scheme Reference]
[Scheme Report]
[CS153 2002S (Walker)]
[CS151 2003S (Rebelsky)]
[CS152 2000F (Rebelsky)]
[SamR]
Back to Getting Started with Object-Oriented Programming. On to Java Lab.
Held: Tuesday, 11 March 2003
Summary: Today we begin our exploration of the Java programming language.
Related Pages:
Assignments:
Notes:
partition! problem is intentionally hard.Overview:
a simple, object-oriented, distributed, interpreted, robust, secure, architecture neutral, portable, high-performance, multithreaded, and dynamic language.
fluentin Java.
main method that directs everything
else.
main method generally
import java.io.PrintWriter; // Load library
/**
* Your first Java program.
*
* @author Samuel A. Rebelsky // Author of the program
* @version 1.1 of March 2003 // Version of the program
*/ // End of introductory comment
public class FirstProgram // Class declaration
{ // Start body of class
public static void main(String[] args) // Declare main method
{ // Start body of main method
PrintWriter output; // Declare variable
output = new PrintWriter(System.out,true);
// Create object
output.println("That's it!"); // Call object method
} // main(String[] args) // End body of main method
} // class FirstProgram // End body of class
output,
and tells it to do one thing, print a string.
languages.
% javac file.java
javac (Java compiler).
% java file.class
java (Java interpreter).
export PATH=/usr/java/j2sdk1.4.1_01/bin:$PATH
Thursday, 15 January 2003 [Samuel A. Rebelsky]
Monday, 10 March 2003 [Samuel A. Rebelsky]
Tuesday, 11 March 2003 [Samuel A. Rebelsky]
Back to Getting Started with Object-Oriented Programming. On to Java Lab.
[Skip to Body]
Primary:
[Front Door]
[Current]
[Glance]
-
[EC]
[Honesty]
[Instructions]
[Links]
[Search]
[Syllabus]
Groupings:
[EBoards]
[Examples]
[Exams]
[Handouts]
[Homework]
[Labs]
[Lab Writeups]
[Outlines]
[Readings]
[Reference]
ECA:
[About]
[Grades]
[Quizzes]
[Submit Work]
[Change Password]
[Reset Password]
Misc:
[Experiments in Java]
[Scheme Reference]
[Scheme Report]
[CS153 2002S (Walker)]
[CS151 2003S (Rebelsky)]
[CS152 2000F (Rebelsky)]
[SamR]
Disclaimer:
I usually create these pages on the fly
, which means that I rarely
proofread them and they may contain bad grammar and incorrect details.
It also means that I tend to update them regularly (see the history for
more details). Feel free to contact me with any suggestions for changes.
This document was generated by
Siteweaver on Tue May 6 09:20:47 2003.
The source to the document was last modified on Tue Mar 11 08:53:17 2003.
This document may be found at http://www.cs.grinnell.edu/~rebelsky/Courses/CS153/2003S/Outlines/outline.30.html.
You may wish to
validate this document's HTML
;
;
Check with Bobby