HW08 Solution3

HW08 Solution3 - System.out.println"ace" else...

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

View Full Document Right Arrow Icon
Sheet1 Page 1 public class Card { int value Card() { value = (int) (Math.random() * 13) + 1 } void printValue() { System.out.println(value) else if (value == 1)
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: System.out.println("ace") else if (value == 11) System.out.println("jack") else if (value == 12) System.out.println("queen") else System.out.println("king") } }...
View Full Document

This note was uploaded on 04/10/2008 for the course ENGR 131 taught by Professor Xiaowei during the Spring '07 term at Case Western.

Ask a homework question - tutors are online