Code Archive Skip to content Google About Google Privacy Terms
ãããããã¨ã«ãªãããã¨ã public class N { class Param { String A; String B; String C; // ... public String build() { // ... return null; } } public void put(Param p, int from, int to) { String s = p.build(); // ãã©ã¡ã¼ã¿ãçµã¿ç«ã¦ããå ¥åãã§ãã¯ã¨ããããã°ããã // ... } } å¼ã³åºãæ¹ã¯ä»¥ä¸ã®ãããªæãã public void test() { new N().put(new N.Param() {{ A = "PC"; B = "M"; C = "P"; // ... }}, 23, 5); } Map ã使ã£ã¦ä¼¼ããããªãã¨ãå½ç¶åºæ¥ãããéãã¯ãã©ã¡ã¼ã¿åã®ééããæã«ãã³ã³ãã¤ã«ã¨
ãã¼ã ã©ã天ä¸ä¸æ¦éä¼ ï½ã³ã¼ãGolf & F1ã¬ã¼ã¹ï¼ï½ : ATND ã«åå ãã¦ãã¾ãããæ®æ®µJava使ã£ã¦ããªãã®ã§ã©ããªããã¨æãã¾ãããããªãã¨ãåªåãããã¨ãã§ãã¾ããã åé¡ã¯ãã¦ã¼ã¶ãã¼ã¿ã¨ååã®è³¼å ¥ãã¼ã¿ãä¸ããããã®ã§ãå ¨ååéã®ã³ãµã¤ã³é¡ä¼¼åº¦ãæ±ããã¨ãããã®ã§ãããå ¥å㯠<ã¦ã¼ã¶ID>,<ååID> ã®CSVã§ä¸ããããåºåã¯ååIDÃååIDã®äºæ¬¡å é åãCSVã§åºãã¾ããè³¼å ¥ãã¼ã¿ã¯1ä¸ä»¶ãã¦ã¼ã¶æ°ã¯1000以ä¸ãååæ°ã¯500以ä¸ã¨ããå¶éã§ãã é ä½ã¯ãå®è¡æéã«ããã¹ã³ã¢ã¨ãã¤ãã³ã¼ãã®ãµã¤ãºã«ããã¹ã³ã¢ã®åã«ãã£ã¦ä»ãããã¾ãããããã50ç¹æºç¹ã§ãå®è¡æé㯠10ç§ (50ç¹) 60ç§ (0ç¹) ãã¤ãã³ã¼ãã®ãµã¤ãºã¯ã 1Kbyte (50ç¹) 6Kbyte (0ç¹) ãåºæºã¨ãã¦ãç·å½¢è£å®ããã¦æ±ºã¾ãã¾ãã50ç¹æºç¹ã§ãããåºæºå¤ãè¶ ããå ´åã¯
_ å¯è¶³ããªã æ¨æ©ã¯ãäºå®ããæ©ãä»äºãçµãã£ãã®ã§ã馴æã¿ã®åºã§ãã£ã±ãããã®å¾ã2次ä¼ã«è¡ã£ã¦ãããã£ã±ãããããªããã§å¸°ããé ãã£ãã®ã«ãç«ç½å ±ç¥å¨ã®è¨ç½®ãããã®ãæãåºãã¦æ©ãã«èµ·ããããããã§ãããªãã®å¯ä¸è¶³ãäºå®ããã1æéãé ãæ¥ããã¨ãããã£ã¦ããããããå°ããã£ããå¯ã¦ããã®ã«ã _ openjdk-6 6b17-1.7-1 icedtea6-pluginããããããFirefoxã®trunkã§ãpluginã¨ãã¦èªèãããããã«ãªã£ãããã¶ãã Enable the NPPlugin. ã®å¤æ´ã®ããã ãããããã§ãå ¨é¢çã«sun-java6-jreãã移è¡ã§ããã _ Bug-org 539063 : Implement a whitelist and blacklist for OOPP ãããããã§ãã¯ã¤ã³ããã¦ãpluginãã¨ã«OOPPãæå¹ã»ç¡å¹ãè¨å®ã§ãã
Play Framework makes it easy to build web applications with Java & Scala. Play is based on a lightweight, stateless, web-friendly architecture. Built on Pekko (Play 3) and Akka (Play 2), Play provides predictable and minimal resource consumption (CPU, memory, threads) for highly-scalable applications. Developer friendly. Make your changes and simply hit refresh! All you need is a browser and a tex
Chief Engineer for Java SEã®äººãããJava7ã«å ¥ãæ©è½ãå ¥ããªãæ©è½ãçºè¡¨ããã¦ã¾ãããã¾ã ãfinalãããªãã¨æããã©ãã»ã¼ããã§ç¢ºå®ãªãã ãããªãã Java 7 Roadmap Updated: Reactions å ¥ãæ©è½ã¯ä»¥ä¸ã®ã¨ãã Modularization - 294 and project Jigsaw 292 - JVM Support for dynamic languages JSR 203 - More New I/O APIs which are nearly finished, includes true asynchronous I/O (not just non blocking I/O) and finally a real file system API JSR TBD: Small language changes (
2002 | 10 | 11 | 12 2003 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 2004 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 2005 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 2006 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 2007 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 2008 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 2009 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 1
ãJava News.jpï¼Javaã«é¢ããææ°ãã¥ã¼ã¹ï¼ãã®å®è¤å¹¸å¤®æ°ããCoolãªããã°ã©ãã³ã°ã®ããã®ãã¦ãã¦ãTIPSãçè ã®çµé¨ãªã©ããRundownãï¼é§ã足ã®è¦ç¹èª¬æï¼ã§ãå±ããã¾ãï¼ç·¨éé¨ï¼ æ¨æºJDKã«å«ã¾ãã便å©ãªãã¼ã« èªè ã®çããã¯ãæè¿ã®JDKï¼Java SEï¼ã«ãéçºããããã°ã«ä¾¿å©ãªæ°ãããã¼ã«ãå«ã¾ãã¦ãããã¨ããåãã§ããããï¼ å¤ãããã®Javaéçºè ã¯ãå¤ãæ代ã®JDKã®ãã¼ã«ããç¥ãããä¸æ¹ã§æ°ããJavaéçºè ã¯Eclipse/NetBeansãªã©ã®çµ±åéçºç°å¢ã«æ £ãã¦ãã¾ããç´°ããªã³ãã³ããã¼ã«ãç´ã«ä½¿ãç¶æ³ãæ¸ã£ã¦ãã¦ããããããã¾ããã ããã§ä»åã¯ãæè¿ã®Java SE 6å«ãã¦æ¯è¼çæ°ããã¨æããããã¼ã«ã以ä¸ã®5種é¡ã«åãã¦ç´¹ä»ãã¾ãã ãããã¡ã¤ãªã³ã° ãã©ãã«ã·ã¥ã¼ãã£ã³ã°ï¼æ å ±åå¾ ç£è¦ é åï¼è£å© ã¹ã¯ãªããã£ã³ã° ããããªãã¼
1 Webã¢ããªã±ã¼ã·ã§ã³æè¡è ã®è¦æ¥µãæ¹ï¼Javaï¼ ã俺Java6å¹´ãã£ã¦ã¾ãï¼ãã¨ãè¨ããã¦ãæ£ç´ããåãããªãã£ã¦ãã話ãããã¨ãããJavaãªæè¡è ã®æ¹ã ã«ããããã質åããã¦ã¿ãã°ï¼ãã£ã¦ããã¢ããã¤ã¹ãããã£ãã®ã§ãç´¹ä»ã 使ãæ £ããAPãµã¼ãã¯ä½ã§ããï¼âãããã¤æ¹æ³ãç°¡åã«èª¬æãã¦ãã ããï¼ Mavenã¨Antã¯ã©ã¡ãã使ã£ã¦ãã¾ãã ãEffective Javaããèªã¿ã¾ãããï¼âããããä½ãå¦ã³ã¾ãããï¼ èªç±ã«ãã¬ã¼ã ã¯ã¼ã¯ãé¸ãã§ããã¨è¨ã£ããä½ã使ãã¾ãã ä»ã«ããã£ããæãã¦ãã ããã
λ... λ... ã¡ãã£ã¨ã¨ããã¾ãã ã¯ããã« C++ Template ã®åå¼·ããã¦ãã¦ãæ°ãã¤ããã ãã¹ãããï¼å å´ããå¤å´ãè¦ããï¼åå-å¤ã®ç©ºéãåå¨ã å¤ããåå-å¤ã®ç©ºéãçæãããã¨ãå¯è½ã§ ãã®ç©ºéãçæããããã®æ å ±ãå¤ã¨ãã¦æ±ã åå-å¤ã®ç©ºéã®ä¸ã®ä¸ã¤ä»¥ä¸ã®å¤ãåãåºãã㨠ã©ã ããåºæ¥ãã ã¨ãã訳㧠Java ã§ã©ã ããä½ã£ã¦ã¿ã import static java.lang.System.out; public class Hoge { public static void main (String args[]) { // ãã£ã¼ãæ° 0 final λ zero = new λ () { λ call (final λ f) { return new λ () { λ call (final λ x) { return x; }}; }}; // ã
memcachedã¨ã¯? memcachedã¨ã¯ãã®åã®éãããã¼ã¿ãã¡ã¢ãªä¸ã«ä¿æãããã£ãã·ã¥ãµã¼ãã§ãã¢ã¯ã»ã¹æ°ã®å¤ãWebãµã¤ãã«ããã¦ãã¼ã¿ãã¼ã¹ã®è² è·ãæ¸ããããã«å©ç¨ããããã¨ãå¤ãããã¼ã¿ããã£ã¹ã¯ã«æ¸ãåºãããä¿æãããã¼ã¿ããã¼ã¨å¤ã®ã¿ã¨é常ã«ã·ã³ãã«ã§ããããåä½ã¯é«éã ããmemcachedãçµäºããã¨ãã¼ã¿ã失ããã¦ãã¾ãã¨ããåé¡ãããããã®ããmemcachedã«ã¯æ¶å¤±ãã¦ãåé¡ã®ãªããã¼ã¿ã®ã¿ãæ ¼ç´ããããã·ã¹ãã è¨è¨ãè¡ãå¿ è¦ãããã ãªããmemcachedäºæã®ãã£ãã·ã¥ãµã¼ãã¨ãã¦ããã¼ã¿ããã£ã¹ã¯ã«æ°¸ç¶åããæ©è½ãåããmemcachedbããã¬ããªã±ã¼ã·ã§ã³æ©è½ãåããrepcachedãããã Javaåãã®memcachedã¯ã©ã¤ã¢ã³ãã¯ããã¤ãåå¨ããããæ¬ç¨¿ã§ç´¹ä»ããã®ã¯memcached client for javaãLGPLã§æä¾ã
ç±³Microsoftã¨æ¬§å·ã®ãªã¼ãã³ã½ã¼ã¹ã·ã¹ãã ã¤ã³ãã°ã¬ã¼ã¿ã¼Sourcesenseã¯3æ25æ¥ãMicrosoft Office製å対å¿ã®ãªã¼ãã³ã½ã¼ã¹ã½ãªã¥ã¼ã·ã§ã³ã®éçºæ¨é²ãå ±åã§è¡ãã¨çºè¡¨ãããæåã®ç®æ¨ã¨ãã¦ãApache Software Foundationï¼ASFï¼ã®ãªã¼ãã³ã½ã¼ã¹ããã¸ã§ã¯ããApache POIãã®æ°ãã¼ã¸ã§ã³éçºã¸ã®è²¢ç®ãæãã¦ããã Apache POIã¯ãWordãExcelãªã©ã®Microsoft Officeå½¢å¼ã®ææ¸ã«ã¢ã¯ã»ã¹ããããã®Java APIã§ãéèãµã¼ãã¹ãã¯ããã¨ããã¨ã³ã¿ã¼ãã©ã¤ãºã¢ããªã±ã¼ã·ã§ã³ã®ã»ããå¤ãã®ãªã¼ãã³ã½ã¼ã¹ããã¸ã§ã¯ãã«æ¡ç¨ããã¦ããããã®ãããApache POIãOffice 2007ã®ãOpen XMLããã©ã¼ãããã«å¯¾å¿ããããã¨ãç¸äºéç¨æ§ã®é¢ã§éè¦ã¨Microsoftã¨Sourcesenseã¯
æè¿Hadoopã使ãããã«5ã6å¹´ã¶ãã«Javaãããã£ã¦ãã¾ãã ããã§ãã¡ãã£ã¨ã°ããèããããããã§ãã ä¾ãã°ãããã¡ãªä¾é¡ãæããã¨ã ["google", "æ¤ç´¢","éçº"] ã®ãããªã¿ã°(æåå)ã®ãªã¹ã(ã§ãé åã§ããªãã§ããã)ãåãåã£ã¦ [ {tag=>"google", enc=>'google'}, {tag=>"æ¤ç´¢", enc=>'%E6%A4%9C%E7%B4%A2'}, {tag=>"éçº", enc=>'%E9%96%8B%E7%99%BA'} ] ã®ãããªããã·ã¥ãã¼ãã«ã®ãªã¹ãã«å¤æããªããã ãã ããã¼ã»ã³ãã¨ã³ã³ã¼ãã£ã³ã°ãè¡ãé¢æ°(ã§ãã¡ã½ããã§ããªãã§ããã) uri_encodingã¯ä¸ãããã¦ãããã®ã¨ããã ãããªãã¨ãWebã¢ããªã±ã¼ã·ã§ã³ã§ã¯ãããããããªãã§ããã ãã§ãå®éPerlãªããã§ã¯çµæ§ç°¡åã«æ¸ã㦠#my @tag
Java Web StartãJava JDKãJava JREãJava SDKã«è¤æ°ã®èå¼±æ§ãåå¨ããã ç±³Sun Microsystemsã¯Java SEã®ã¢ãããã¼ããå ¬éãããJava Web StartãJava JDKãJava JREãJava SDKã®æ·±å»ãªèå¼±æ§ã«å¯¾å¦ãã¦ããã Sunã¨US-CERTã®ã¢ã©ã¼ãã«ããã¨ã3æ4æ¥ã«å ¬éãããã®ã¯JDKï¼JRE 6 Update 5ãJDKï¼JRE 5.0 Update 15ãSDKï¼JRE 1.4.2_17ãSDKï¼JRE 1.3.1_22ã®åãã¼ã¸ã§ã³ã èå¼±æ§ã¯ããããåã®ãã¼ã¸ã§ã³ã«åå¨ããä»»æã®ã³ã¼ãå®è¡ãã»ãã¥ãªãã£å¶éã®åé¿ãDoSï¼ãµã¼ãã¹æå¦ï¼ç¶æ ã®èªçºã«å©ç¨ãããå¯è½æ§ãããã
Javaã«ããã¦ãã©ãããã©ã¼ã ã¨ã®é«ã親åæ§ãå®ç¾ããããC/C++ã§éçºãããã©ã¤ãã©ãªãæ´»ç¨ããã«ã¯JNIã使ãå¿ è¦ããããJNIã使ãã«ã¯C/C++ã«é¢ãããããªãã®ç¥èã¨çµé¨ãå¿ è¦ã ãJavaããããã°ã©ãã³ã°ãéå§ãããããããã«ã¨ã£ã¦ãJNIã¯é¿ãã¦éãããæè¡ã ãããããããç°¡åã«å®ç¾ã§ããæ¥ãæ¥ããããããªãâ¦â¦ã ãã®å®ç¾ãå¯è½ã«ãããããããªãã®ãJNIEasy : Java Native Objectsã ãJNIEasyã¯C/C++ãè¨è¿°ãããã¨ãªãJavaã©ã¤ã¯ãªã·ã³ã¿ãã¯ã¹ã¨JOPOã ãã§JNIãåãæ©è½ãå®ç¾ãããããã¯ããåãããã¯ãã使ããã¨ã§C/C++ããã°ã©ãã³ã°ã®çµé¨ããªãã¨ãC/C++ãã¤ãã£ãã©ã¤ãã©ãªã使ããããã«ãªããJNIEasyã¯WindowsãLinuxã§åä½ããã18æ¥(ç±³å½æé)ã«ãªãªã¼ã¹ãããææ°ã®JNIEasy 1.2ã§ã¯Mac
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}