== クラス == {{{#!java public class Card { String suit; int rank; public static void main(String[] args) { Card a, b, c; a = new Card(); a.suit = "ハート"; a.rank = 12; b = new Card(); b.suit = "スペード"; b.rank = 3; c = b; c.rank = 10; System.out.println( "aは " + a.suit + a.rank ); System.out.println( "bは " + b.suit + b.rank ); System.out.println( "cは " + c.suit + c.rank ); } } }}}