Difference between revisions of "Main Page"
From CompSciWiki
(→Table of Contents) |
(→Your First Java Program) |
||
Line 25: | Line 25: | ||
*[[Input using JOptionPane]] - Kelly | *[[Input using JOptionPane]] - Kelly | ||
*[[Variables and Literals]] | *[[Variables and Literals]] | ||
− | *Common Primitive Variables | + | *[[Common Primitive Variables]] |
− | * | + | *[[Arithmetic Operators]] |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
*[[Strings]] - Doug | *[[Strings]] - Doug | ||
*[[Increment and Decrement Operators]] - Doug | *[[Increment and Decrement Operators]] - Doug |
Revision as of 16:21, 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
- Claiming IDs - Basel
- Installing TextPad and Java SDK
- How to Install - Chris M
- Helpful Textpad Options - Eli
- Common Problems - Chris M
- Review Questions and Exercises
What is Programming?
- Programming Languages
- Anatomy of a Program Adam D
- The Programming Process Adam D
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
- Arithmetic Operators
- Strings - Doug
- Increment and Decrement Operators - Doug
- Casting - Doug
- Named Constants - Doug
- Review Questions and Exercises
Calling Methods
- Introduction - Eli
- String Methods (just mention compare methods--more on these methods later) - Eli
- Math Methods - Basel
- JOptionPane Methods (for various dialog boxes) - Eli
- 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