01 /*
02 * $Id: ListMultiply.java,v 1.7 2006/08/18 06:46:33 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 ListMultiply {
18
19 /**
20 * メインメソッド
21 *
22 * @param args コマンドライン引数
23 */
24 @SuppressWarnings("nls")
25 public static void main(String[] args) {
26 MatxList x = new MatxList(new Object[] {Integer.valueOf(1), Integer.valueOf(2)});
27 MatxList y = x.multiply(3);
28 y.print("y");
29 }
30 }
|