{"provider_url":"https://hatena.blog","width":"100%","version":"1.0","author_url":"https://blog.hatena.ne.jp/fumokmm/","blog_url":"https://npnl.hatenablog.jp/","title":"\u6700\u5c0f\u5024\u3084\u6700\u5927\u5024\u3092max, min\u3067\u8868\u73fe\u3059\u308b","type":"rich","description":"\u3042\u308b\u5909\u6570\u306e\u5024\u304c\u30de\u30a4\u30ca\u30b9\u3092\u8a31\u5bb9\u3057\u306a\u3044\u3088\u3046\u306a\u5834\u5408\u304c\u3042\u308b\u3068\u3057\u3066\u3001\u4ed6\u306e\u5909\u6570\u304b\u3089\u5024\u3092\u53d7\u3051\u53d6\u3063\u3066\u8a2d\u5b9a\u3059\u308b\u3088\u3046\u306a\u5834\u5408\u3092\u8003\u3048\u3066\u307f\u308b\u3002(Java\u306b\u3066) \u666e\u901a\u306b\u66f8\u304f\u3068 int num1; if (a < 0) { num1 = 0; } else { num1 = a } \u3053\u3093\u306a\u611f\u3058\u3060\u308d\u3046\u304b\u3002\u3082\u3057\u304f\u306f\u4e09\u9805\u6f14\u7b97\u5b50\u3092\u5229\u7528\u3057\u3066 int num1 = (a < 0) ? 0 : a; \u3068\u306a\u308b\u3060\u308d\u3046\u3002 max, min\u3092\u4f7f\u3046\u3068\uff1f \u305d\u3057\u3066\u3001java.util.Math#max()\u3092\u5229\u7528\u3059\u308b\u66f8\u304d\u65b9\u306f\u3053\u3093\u306a\u611f\u3058\u306b\u306a\u308b\u3002 int num1 = java.util.Math.max( a, 0 ); \u3044\u304b\u304c\u3067\u3057\u3087\u3046\u304b\u3002a\u304c0\u4ee5\u4e0a\u306e\u5834\u2026","author_name":"fumokmm","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fnpnl.hatenablog.jp%2Fentry%2F20090212%2F1234455289\" title=\"\u6700\u5c0f\u5024\u3084\u6700\u5927\u5024\u3092max, min\u3067\u8868\u73fe\u3059\u308b - No Programming, No Life\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","published":"2009-02-12 01:14:49","blog_title":"No Programming, No Life","categories":["\u30a2\u30eb\u30b4\u30ea\u30ba\u30e0","Java","Groovy","Tips"],"height":"190","image_url":null,"url":"https://npnl.hatenablog.jp/entry/20090212/1234455289","provider_name":"Hatena Blog"}