08-07feb15classstuff - 1 1 CS100J Classes, stepwise...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: 1 1 CS100J Classes, stepwise refnement 25 February 2007 Rsrecah on spleilng Aoccdrnig to a rscheearch at Cmabirgde Uinervtisy, it deosn't mttaer in waht oredr the ltteers in a wrod are, the olny iprmoetnt tihng is that the frsit and lsat ltteer be at the rghit pclae. The rset can be a total mses and you can sitll raed it wouthit porbelm.Tihs is bcuseae the huamn mnid deos not raed ervey lteter by istlef, but the wrod as a wlohe. Miscellaneous points about classes. More on stepwise refnement. CMS allows you to submit an assignment several times. We grade only the last one submitted (but access to all o¡ them). Prelim 7:30-9:00 Thursday, 22 Feb. Review session: 1:00-3:00, Sunday, 18 Feb., in Philips 101 2 Help: Get it now i¡ you need it!! • One-on-one help from TAs. For info, get on the course website and click "Staff-info". • Call Cindy Pakkala 255-8240 for an appointment with Gries. • See a consultant in the ACCEL Green room 2:30 to 11:00 (to 6:00 on Fri-Sat). They aren't very busy now. • Peer tutoring (free). On http://www.engineering.cornell.edu, click on "student services". On the page that comes up, click on "Learning Initiatives (L.I.F.E.) in the left column, upper part. Then, click on "peer tutoring" in the left column. • Take an AEW courses. Ask in Olin 167. 3 Notes on assignment A3 3. Testing for null /** = ”r is this Elephant’s brother". Precondition: r not null. */ public boolean isBrotherOf(Elephant r) { // No need to test ¡or null . It’s the caller’s duty not to have r null. } /** = ”r1 and r2 are not null, and r1 and r2 are siblings */ public static boolean areSiblings(Elephant r1, Elephant r2) { // The result depends on r1, r2 not being null, and the // return expression should somehow include that test. return … } In ElephantTester, when testing areSiblings, need to test calls like areSiblings(m1, null ) areSiblings( null , m2) 4 Content o¡ this lecture This lecture contains some final miscellaneous points to round...
View Full Document

This note was uploaded on 03/03/2012 for the course CS 100J taught by Professor Davidgries during the Spring '07 term at Cornell University (Engineering School).

Page1 / 2

08-07feb15classstuff - 1 1 CS100J Classes, stepwise...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online