Job Advice
Below is some job advice. The complete article is located
here.
- Learn how to write before graduating
- Learn C before graduating
- Learn microeconomics before graduating
- Don't blow off non-CS classes just because they're boring
- Take programming-intensive courses
- Stop worrying about all the jobs going to India
- No matter what you do, get a good summer internship
Selection Sort
Lecture Task
- Let's make a driver program that creates an array of 10
Integers, calls selection sort, and then prints out the
sorted array.
- Let's make a Sort class that uses this prototype:
public static void selection (Comparable [] objects)
- Then let's change its prototype so that it compiles without
any warnings:
public static <T extends Comparable<T>>
void selection (T [] objects)
Java Sorting Methods
Take a look at the sort methods provided in
- java.util.Arrays
- java.util.Collections
Can you use them?
Lecture Code