HW08 Solution2

HW08 Solution2 - else if (value == 1)

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

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

Unformatted text preview: else if (value == 1) 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