Shinji KONO
2006-10-15 18:19:46 UTC
$B2OLn??<#(B @ $BN05eBg3X>pJs9)3X$G$9!#(B
JavaSound $B$r$$$8$C$F$^$9!#(BSun$B$N:n$C$?NcBj$@$J!#(B
JavaSound $B$N%=!<%9<+BN$O$$$8$i$:$K!"7Q>5$7$?%/%i%9$@$1$G?7$7(B
$B$$$b$N$r:n$k$C$F$N$,!"%*%V%8%'%/%H;X8~E*$J$s$@$,(B....
$B%*%V%8%'%/%H$r:n$k;~$KF0$/%a%=%C%I$O(BJava$B$N>l9g$O(B Constructor
$B$H8F$P$l$^$9!#%/%i%9L>$HF1$8%a%=%C%I$,<+F0E*$K$=$&$J$k!#(B
$B$G$b!"(BJavaSound $B$@$H!"(BDefault Constructor $B$,$J$$>l9g$,$"$k!#(B
$B7Q>5$7$?%/%i%9B&$G!"L@<(E*$K?F%/%i%9$N!V4{$K$"$k!W(BConstructor
$B$r8F$VI,MW$,$"$k$i$7$$!#0lJ}$G!"(BDef ault Constructor $B$,$"$k(B
$B%W%m%0%i%`$G!"(BDefault Constructor $B$K!"$,$s$,$s%3!<%I$,=q$$$F(B
$B$"$k!#(B
$B$C$F$3$H$O!"$I$C$A$N>l9g$G$b!"(BConstructor $B$N?6Iq$$$r(BSub Class
$BB&$+$iJQ$($k$3$H$O$G$-$J$$!#$@$a$8$c$s!#$J$N$G!"(BDefault Constructor
$B$,$J$$>l9g$O6u$J$b$N$rIU$12C$(!"(BDefault Constructor $B$K$4$A$c(B
$B$4$A$c=q$$$F$"$k>l9g$O!"M>7W$J0z?t$r;}$D%@%_!<$N6u$J(BConstructor
$B$rIU$12C$($k$C$F$J46$8$GF($2$?$s$@$1$I!#$3$s$J$b$N(B?!
static main(String arg[]) $B$+$i5/F0$9$k$N$O5v$9$s$@$,!"$=$3$K!"(B
$B$^$?!"$$$m$$$m$4$A$c$4$A$c=q$$$F$"$k!#$=$3$G!"(BClass $BL>$r;XDj(B
$B$7$F(Binstance $B$r:n$C$F$7$^$C$F$$$k$+$i!"7Q>5B&$O!"(Bmain $B$r>e=q(B
$B$-$9$k$7$+$J$$!#$G$b!"$=$3$K$4$A$c$4$A$c=q$+$l$F$?$i!"$=$l$r(B
$B%3%T!<$9$k$7$+$J$$!#M>7W$J%3!<%I=q$/$J$iJL%a%=%C%I$K$7$F$/$l(B
$B$F$$$l$P!"LdBj$J$$$N$K!#$"$k$$$O!"(BMyClass self = new this();
self.start(); $B$H$+=q$1$k$N$+(B?
Class $BDj5A$NCf$K6I=jE*$K(B Class $BDj5A$r$9$k(B Inner Class $B$,B?MQ(B
$B$5$l$F$k!#(BInner Cla ss $B$C$F!"(B
$B!!$^$C$?$/!"2?$NLr$K$b$?$?$J$$%4%_$J35G0(B
$B$@$H;W$&!#$=$s$J$KL>A06u4V$,***@Z$+(B? package $B$"$k$N$K(B? $B:FMxMQ(B
$B$9$k;~$K$O!"?F(BClass $B$NCf$N(BInner Class $B$r$5$i$K7Q>5$9$k(BInner
Class$B$r;RB&$K:n$k$J$s$F8@$&$P$+$2$?$O$a$K$J$k!#$=$l$,2DG=$J(B
$B$H$3$m$,!"$5$i$K(B Inner Class $B$NITMW$52C8:$r6/$/$9$k!#$b$A$m(B
$B$s!"?FB&$G$O(B Inner Class $BL>$r;XDj$7$F(Binstance$B$r:n$C$F$$$k$o(B
$B$1$J$N$G!"$=$NItJ,$O!";RB&$K%3%T!<$7$F$d$kI,MW$,$"$k!#$G$J$$(B
$B$H!";RB&$N(BInner Class $B$OQO(Bw$B$l$J$$!#$7$+$b!"$=$NItJ,$K!"$^$?!"(B
$B$4$A$c$4$A$c$7$?%3!<%I$,=q$$$F$"$k!#(B
$B$7$+$b!"(BInner Class $BB&$K(B private method $B$J$s$+$b$"$k!#7Q>5$7(B
$B$?;RB&$+$iMxMQ$G$-$J$$$8$c$s!#(B private method/instance variable
$B$b!"(B
$B!!$^$C$?$/!"2?$NLr$K$b$?$?$J$$%4%_$J35G0(B
$B$@$H;W$&!#$J!<$K$,$&$l$7$$$s$@$+!#KM$O!"$@$^$C$F(B public $B$C$F(B
$B=q$/$h!#9M$($k$N$a$s$I$/$5$$$7!#(B
$B!!M>7W$J35G0$rA}$d$7!"<+5TE*$J@)8B$r2DG=$K$9$k(B
$B$h$j$b!"(BSimple $B$***@8l$GB?MM$J$3$H$,=PMh$kJ}$,$$$$$G$9!#$G$b!"(B
Template $B$H$+!"(BGen eric Data Type $B$H$+!"%9%?%C%/>e$N%*%V%8%'(B
$B%/%H$H$+(B inline $B$H$+$***@o$&$3$H$K$J$k(B C ++ $B$h$j$O!"(BJava $B$NJ}(B
$B$,!"$O$k$+$K$^$7$J$s$@$h$J!#(B
$B$H$$$&$o$1$G!"7k6I!"85$N%=!<%9$bItJ,E*$K=$@5$9$k$O$a$K$J$C$F(B
$B$^$9!#$^!"?M$N=q$$$?%3!<%I$O5$$KF~$i$J$$$b$N$5!#(B
---
Shinji KONO @ Information Engineering, University of the Ryukyus
$B2OLn??<#(B @ $BN05eBg3X9)3XIt>pJs9)3X2J(B
JavaSound $B$r$$$8$C$F$^$9!#(BSun$B$N:n$C$?NcBj$@$J!#(B
JavaSound $B$N%=!<%9<+BN$O$$$8$i$:$K!"7Q>5$7$?%/%i%9$@$1$G?7$7(B
$B$$$b$N$r:n$k$C$F$N$,!"%*%V%8%'%/%H;X8~E*$J$s$@$,(B....
$B%*%V%8%'%/%H$r:n$k;~$KF0$/%a%=%C%I$O(BJava$B$N>l9g$O(B Constructor
$B$H8F$P$l$^$9!#%/%i%9L>$HF1$8%a%=%C%I$,<+F0E*$K$=$&$J$k!#(B
$B$G$b!"(BJavaSound $B$@$H!"(BDefault Constructor $B$,$J$$>l9g$,$"$k!#(B
$B7Q>5$7$?%/%i%9B&$G!"L@<(E*$K?F%/%i%9$N!V4{$K$"$k!W(BConstructor
$B$r8F$VI,MW$,$"$k$i$7$$!#0lJ}$G!"(BDef ault Constructor $B$,$"$k(B
$B%W%m%0%i%`$G!"(BDefault Constructor $B$K!"$,$s$,$s%3!<%I$,=q$$$F(B
$B$"$k!#(B
$B$C$F$3$H$O!"$I$C$A$N>l9g$G$b!"(BConstructor $B$N?6Iq$$$r(BSub Class
$BB&$+$iJQ$($k$3$H$O$G$-$J$$!#$@$a$8$c$s!#$J$N$G!"(BDefault Constructor
$B$,$J$$>l9g$O6u$J$b$N$rIU$12C$(!"(BDefault Constructor $B$K$4$A$c(B
$B$4$A$c=q$$$F$"$k>l9g$O!"M>7W$J0z?t$r;}$D%@%_!<$N6u$J(BConstructor
$B$rIU$12C$($k$C$F$J46$8$GF($2$?$s$@$1$I!#$3$s$J$b$N(B?!
static main(String arg[]) $B$+$i5/F0$9$k$N$O5v$9$s$@$,!"$=$3$K!"(B
$B$^$?!"$$$m$$$m$4$A$c$4$A$c=q$$$F$"$k!#$=$3$G!"(BClass $BL>$r;XDj(B
$B$7$F(Binstance $B$r:n$C$F$7$^$C$F$$$k$+$i!"7Q>5B&$O!"(Bmain $B$r>e=q(B
$B$-$9$k$7$+$J$$!#$G$b!"$=$3$K$4$A$c$4$A$c=q$+$l$F$?$i!"$=$l$r(B
$B%3%T!<$9$k$7$+$J$$!#M>7W$J%3!<%I=q$/$J$iJL%a%=%C%I$K$7$F$/$l(B
$B$F$$$l$P!"LdBj$J$$$N$K!#$"$k$$$O!"(BMyClass self = new this();
self.start(); $B$H$+=q$1$k$N$+(B?
Class $BDj5A$NCf$K6I=jE*$K(B Class $BDj5A$r$9$k(B Inner Class $B$,B?MQ(B
$B$5$l$F$k!#(BInner Cla ss $B$C$F!"(B
$B!!$^$C$?$/!"2?$NLr$K$b$?$?$J$$%4%_$J35G0(B
$B$@$H;W$&!#$=$s$J$KL>A06u4V$,***@Z$+(B? package $B$"$k$N$K(B? $B:FMxMQ(B
$B$9$k;~$K$O!"?F(BClass $B$NCf$N(BInner Class $B$r$5$i$K7Q>5$9$k(BInner
Class$B$r;RB&$K:n$k$J$s$F8@$&$P$+$2$?$O$a$K$J$k!#$=$l$,2DG=$J(B
$B$H$3$m$,!"$5$i$K(B Inner Class $B$NITMW$52C8:$r6/$/$9$k!#$b$A$m(B
$B$s!"?FB&$G$O(B Inner Class $BL>$r;XDj$7$F(Binstance$B$r:n$C$F$$$k$o(B
$B$1$J$N$G!"$=$NItJ,$O!";RB&$K%3%T!<$7$F$d$kI,MW$,$"$k!#$G$J$$(B
$B$H!";RB&$N(BInner Class $B$OQO(Bw$B$l$J$$!#$7$+$b!"$=$NItJ,$K!"$^$?!"(B
$B$4$A$c$4$A$c$7$?%3!<%I$,=q$$$F$"$k!#(B
$B$7$+$b!"(BInner Class $BB&$K(B private method $B$J$s$+$b$"$k!#7Q>5$7(B
$B$?;RB&$+$iMxMQ$G$-$J$$$8$c$s!#(B private method/instance variable
$B$b!"(B
$B!!$^$C$?$/!"2?$NLr$K$b$?$?$J$$%4%_$J35G0(B
$B$@$H;W$&!#$J!<$K$,$&$l$7$$$s$@$+!#KM$O!"$@$^$C$F(B public $B$C$F(B
$B=q$/$h!#9M$($k$N$a$s$I$/$5$$$7!#(B
$B!!M>7W$J35G0$rA}$d$7!"<+5TE*$J@)8B$r2DG=$K$9$k(B
$B$h$j$b!"(BSimple $B$***@8l$GB?MM$J$3$H$,=PMh$kJ}$,$$$$$G$9!#$G$b!"(B
Template $B$H$+!"(BGen eric Data Type $B$H$+!"%9%?%C%/>e$N%*%V%8%'(B
$B%/%H$H$+(B inline $B$H$+$***@o$&$3$H$K$J$k(B C ++ $B$h$j$O!"(BJava $B$NJ}(B
$B$,!"$O$k$+$K$^$7$J$s$@$h$J!#(B
$B$H$$$&$o$1$G!"7k6I!"85$N%=!<%9$bItJ,E*$K=$@5$9$k$O$a$K$J$C$F(B
$B$^$9!#$^!"?M$N=q$$$?%3!<%I$O5$$KF~$i$J$$$b$N$5!#(B
---
Shinji KONO @ Information Engineering, University of the Ryukyus
$B2OLn??<#(B @ $BN05eBg3X9)3XIt>pJs9)3X2J(B