プログラミング言語についたコメント

23  名前::2013/02/20(水) 00:15:19  ID:aYuMyy/0 PCからの投稿
object iceBox = new object[2][10];
int omu = 0;
for(int i = 0; i < iceBox[0].length(); i++) {
 if(iceBox[0][i] == "egg") {
  omu = 1;
  break;
 }
}

if(omu > 0) {
 omu--;
 System.out.println("オムレツうま過ぎワロタ");
} else {
 System.out.println("メシ抜き");
}
0 イイ!コメント
コピペに戻る