/** Let's make some cards to practice the Card constructor's switch statements. * One nice thing about the toString() function is that you don't need * to call it explicitly. Instead of saying we want to print c.toString(), * we can just say we're printing c. */ import java.io.*; public class Driver { public static void main(String [] args) throws IOException { BufferedReader kbd = new BufferedReader(new InputStreamReader(System.in)); System.out.print("Enter card number 1-52: "); int number = Integer.parseInt(kbd.readLine()); Card c = new Card(number); System.out.println(c); } }