okuの日記: 問題は解けるけど...
日記 by
oku
IT トレメ Sun Certified Programmer for the JAVA 2 Platform の例題より:
boolean i = false;
if ( i = true ){
System.out.println( "abc" );
}else{
System.out.println( "xyz" );
}
問題は解けるし、なぜこうなるかも知っているし、こう書けることのご利益も分かっているけれど、この「仕樣」はどうにかならなかったのかなぁ、と。
問題は解けるけど... More ログイン