Beispiel #1
0
 /**
  * Print information of a card
  *
  * @param c The card whose information is to be printed
  */
 public static void printCard(CreditCard c) { // Print a card's information
   System.out.println();
   System.out.println("Number = " + c.getNumber());
   System.out.println("Name = " + c.getName());
   System.out.println("Bank = " + c.getBank());
   System.out.println("Balance = " + c.getBalance()); // Implicit cast
   System.out.println("Limit = " + c.getLimit()); // Implicit cast
   System.out.println();
 }