Difference between revisions of "Main Page"
From CompSciWiki
m (→Your First Java Program) |
(→Table of Contents) |
||
Line 4: | Line 4: | ||
==Table of Contents== | ==Table of Contents== | ||
===[[Getting Started]]=== | ===[[Getting Started]]=== | ||
− | *[[Claiming IDs]] | + | *[[Claiming IDs]] - Basel |
**[[Claiming IDs#U of M ID|U of M ID]] | **[[Claiming IDs#U of M ID|U of M ID]] | ||
**[[Claiming IDs#nTP ID|nTP ID]] | **[[Claiming IDs#nTP ID|nTP ID]] | ||
Line 39: | Line 39: | ||
===[[Calling Methods]]=== | ===[[Calling Methods]]=== | ||
*[[Calling Methods#String Methods|String Methods (just mention compare methods--more on these methods later)]] | *[[Calling Methods#String Methods|String Methods (just mention compare methods--more on these methods later)]] | ||
− | *[[Calling Methods#Math Methods|Math Methods]] | + | *[[Calling Methods#Math Methods|Math Methods]] - Basel |
*[[Calling Methods#JOption Pane Methods|JOptionPane Methods (for various dialog boxes)]] | *[[Calling Methods#JOption Pane Methods|JOptionPane Methods (for various dialog boxes)]] | ||
*[[Calling Methods#Review Questions and Exercises|Review Questions and Exercises]] | *[[Calling Methods#Review Questions and Exercises|Review Questions and Exercises]] |
Revision as of 16:16, 6 March 2007
Contents
Welcome to the Wiki-Based Text for COMP 1010: Intro Computer Science 1
This text is written for students in the first year course COMP 1010 at the University of Manitoba. This wiki was written by students in the course COMP 3040: Technical Communication for Computer Scientists.
Table of Contents
Getting Started
What is Programming?
Your First Java Program
- Anatomy of a Java Program - Kelly
- Comments - Kelly
- Output using System.out. - Kelly
- Input using JOptionPane - Kelly
- Variables and Literals
- Common Primitive Variables
- ints
- chars
- double
- boolean
- Arithmetic Operators
- Strings - Doug
- Increment and Decrement Operators - Doug
- Casting - Doug
- Named Constants - Doug
- Review Questions and Exercises
Calling Methods
- String Methods (just mention compare methods--more on these methods later)
- Math Methods - Basel
- JOptionPane Methods (for various dialog boxes)
- Review Questions and Exercises
Control Structures
- if-else
- Nested if-else
- Logical and Relative Operators
- Comparing Strings
- Review Questions and Exercises
Loops
User-Defined Methods
- Overview
- Writing a Method
- Calling a User-Defined Method
- Methods and Scoping
- Commenting Methods
- Passing Arguments using Methods
- Review Questions and Exercises
Arrays
- Overview
- Creating Arrays
- Entering and Using Array Elements
- Out of Bounds and One off Errors
- Processing Arrays (using for loops)
- length attribute
- print content of array
- copying arrays
- comparing arrays
- summing values
- finding average of values
- find highest and lowest values
- Review Questions and Exercises
More with Arrays
- Passing Arrays using Methods
- Working with Partially Filled Arrays
- Arrays of Strings
- Searching Arrays
- Sorting Arrays
- Selection Sort
- Binary Sort
- Review Questions and Exercises