cs1120  Fall 2012

cs1120: Introduction to Computing: Explorations in Language, Logic, and Machines

Instructor
Westley Weimer

Email Address
cs1120-staff@cs.virginia.edu

Class Meetings
Tuesdays and Thursdays, 3:30-4:45pm in Olsson 011
Office & Lab Hours
Mo 15:00-17:00 Stacks (J, L)
Mo 17:00-19:00 Olsson 001 (C, M)
Tu 13:00-15:00 Stacks (D, M)
We Noon-13:00 Rice 423 (Weimer)
We 13:00-14:00 Olsson 001 (C, J, M)
We 14:00-16:00 Olsson 001 (C, J, L)
We 16:00-17:00 Olsson 001 (C)
Fr 13:30-15:30 Olsson 001 (C, M, J)
Su 13:00-15:00 Olsson 001 (C, L)
Su 15:00-17:00 Olsson 001 (C, D)
Su 17:00-19:00 Olsson 001 (D, J)

Located in Thornton Stacks
or Olsson 001
or Rice 423 (We Noon-13:00)

CS1120 Java Lab Guide

We have prepared a 40-minute screencast introducing Java and working through the Java Problems found in Problem Set 5. You should treat this as a "small lecture" introducing you to Java: after watching the whole lecture, you will be ready to solve problems in Java.

The videos are quite detailed and serve as a comprehensive walkthrough for the getting started with Java and the questions in Problem Set 5. You might follow along with this video at the same time that you read the PS5 Java problem descriptions.

The are three "main parts" of the video:

  1. Openining Eclipse, Creating new Projects
  2. Printing "Hello, World."
  3. Sorting and ArrayLists
The video is split into five-minute chunks:
  1. #1. Starting Eclipse, Workspaces, Opening Files, Making a Class
  2. #2. The main Method, Printing "Hello, World", Running a Java Program
  3. #3. Making a new ArrayList, Eclipse Warnings, Import Statements
  4. #4. Adding Elements to an ArrayList, Defining Other Functions, Return Types, Setting up Insertion Sort
  5. #5. Java for Loops, Adding Elements to a Sorted ArrayList
  6. #6. Java else if, Staying Within Array Bounds
  7. #7. Stepping Through Inserting One Element Into a Sorted ArrayList (Less Confusingly)
  8. #8. Debugging Example, Finishing and Testing Insertion Sort For an ArrayList
The videos were designed and narrated by friendly CS 1120 TA Dru Knox.

Java and Eclipse on Your Machine

Officially we only support Java on the Lab machines in OLS 001, where everything already works perfectly out of the box.

Here are some instructions that may work for installing Java and Eclipse on your machine. If they don't work, you should use the lab machines (we can't help you).

  1. Install a Java Virtual Machine (JVM) such as the Java Runtime Environment (JRE) or the Java Development Kit (JDK).
  2. Install Eclipse.
That's it. Good luck.
cs1120: Computer Science
University of Virginia
weimer@virginia.edu
Using these Materials