This preview shows pages 1–2. Sign up to view the full content.
This preview has intentionally blurred sections. Sign up to view the full version.View Full Document
Unformatted text preview: theColor = "red"; } dice[ i] = new Square( (10+5)*i, 120, 10, theColor, true, "0"); } First, intuition on how to do this More examples of using arrays: sorting using Bubble Sort 10-15 Class Notes CS 107 Friday, October 15, 2010 3:52 PM 107 Fall 2010 Page 1 Think about how you might want to do a selection sort , where you find the largest (or smallest) value on each pass through the data, swapping it into place. How does this compare to Bubble sort? See other approaches to sorting given online on the course web site: http://people.cs.ubc.ca/~harrison/Java/sorting-demo.html 107 Fall 2010 Page 2...
View Full Document
This note was uploaded on 02/10/2012 for the course COP 2271 taught by Professor Reed during the Fall '10 term at University of Central Florida.
- Fall '10
- Computer Programming