Xyzetc importjavaiofile

Info iconThis preview shows page 1. Sign up to view the full content.

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

Unformatted text preview: SMALL, MEDIUM, LARGE, EXTRA_LARGE}; Size s = Size.MEDIUM; if(s == Size.MEDIUM) // do something •  Preferred over defining each value as an integer constant, for example: public final int SMALL = 0; public final int MEDIUM = 1; … CPSC 324 ‐‐ Spring 2010 14 7 1/28/10 Onto More Objects and Classes •  We are done with Chapter 3 of Core Java –  It is important you read this Chapter though! •  We did not cover everything … –  Formatting output (using printf and format) –  Details on using many of the classes we discussed –  Big numbers –  Multidimensional arrays (arrays of arrays) –  Block scope –  Operator precedence – Unicode CPSC 324 ‐‐ Spring 2010 15 More on Formatting and Laying out Classes /* * standard c‐style comment that should include * classname, version, date, and copyright informaIon */ package org.xyz.etc; import java.io.File; import java.io.FileNotFoundExcepIon; … /** * Class descripIon * @author First Last * @version version‐id */ public class ClassName { … } CPSC 324 ‐‐ Spring 2010...
View Full Document

This document was uploaded on 03/18/2014 for the course CPSC 324 at Gonzaga.

Ask a homework question - tutors are online