01 /*
02 * $Id: ListSize.java,v 1.7 2006/08/18 06:46:32 koga Exp $
03 *
04 * Copyright (C) 2004 Koga Laboratory. All rights reserved.
05 *
06 */
07 package matxbook.chap18;
08
09 import org.mklab.nfc.matx.MatxList;
10
11
12 /**
13 * リストの大きさを取得するサンプルです。
14 * @author koga
15 * @version $Revision: 1.7 $, 2004/04/20
16 */
17 public class ListSize {
18
19 /**
20 * メインメソッド
21 *
22 * @param args コマンドライン引数
23 */
24 @SuppressWarnings("nls")
25 public static void main(String[] args) {
26 MatxList x = new MatxList(3);
27 System.out.println("size(x) = " + x.size());
28 }
29 }
|