Skip to content

Instantly share code, notes, and snippets.

@tmd45
Created March 7, 2012 10:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tmd45/1992503 to your computer and use it in GitHub Desktop.
Save tmd45/1992503 to your computer and use it in GitHub Desktop.
no good source comment
package localhost;
public class Example {
/**
* ここにはとても気持ちの悪いコードが書いてあります。
  * 身体の弱い方、体調の優れない方が閲覧されないことをお勧めいたします。
*/
public static void main(String[] args) {
// この条件は以下のいずれかの場合に適用される。
// strが
// ・"Cat" のとき
// ・"Dog" のとき
// 2012.03.07 add start
// ・"Bird" のとき
// 2012.03.07 add end
// ※"Fish" のときはぜったい適用されない
if(
str.equals("Cat")
|| str.equals("Dog")
// 2012.03.07 add start
|| str.equals("Bird")
// 2012.03.07 add end
) {
// 好きだって言いたいだけ
System.out.println("I love a pretty animal!")
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment