nineLab1 - for (CreditCard card : credit) {...

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

View Full Document Right Arrow Icon
import type.lib.*; import java.io.PrintStream; i public class nineLab1 { public static void main(String[] args) { PrintStream output = System.out; GlobalCredit credit = GlobalCredit.getRandom();
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: for (CreditCard card : credit) { output.printf("%s", (card instanceof RewardCard) ? (card.toString() + "\n") : ""); } } }...
View Full Document

This note was uploaded on 09/16/2011 for the course CSE CSE 1020 taught by Professor Burton,ma during the Fall '10 term at York University.

Ask a homework question - tutors are online