HW08 Solution3

HW08 Solution3 -...

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

Ask a homework question - tutors are online