Java
ã·ã³ãã«ã«ããã«ã½ã¼ãã®ã³ã¼ããæ¸ããã ãã ãã©ãJavaèªä½ãä¹ ãã¶ãéãã¦ã©ãã§ãããã¨ããã§ã¤ã£ãããã¾ãã£ã¦ãã¾ã£ãããã emergent's gist: 3731596 â Gist
åãã¦ã¾ã¨ãã«ä½¿ããã¨ããã®ã ããæå¤ã¨ç°¡åã«ã§ããã®ãã 使ãæ¹ ããã¸ã§ã¯ãå ã®é©å½ãªã¨ããã§å³ã¯ãªãã¯->[New]->[JUnit Test Case] ãã¹ã対象ã®ã¯ã©ã¹ãé¸æããããã¹ãã±ã¼ã¹ã®ååã決ããããã ãã¹ãã³ã¼ããæ¸ã ãã¹ãã³ã¼ãã®ãã¡ã¤ã«åâ¦
ã¨ããããªããªãè¦ããããªãâ¦ããã¯ä¸åº¦ã¾ã¨ãã¦ããç´ãå¿ è¦ããããªããRubyã®ã¨ãã¯ç¹ã«æèããã«ãã£ã¦ããããã®ãã±ããã£ã¦ããæããSetã¨Listã¨Mapã¨ããã£ã¦ããã«HashMapããHashTableããâ¦ãããï¼HashTableã¯ã³ã¬ã¯ã·ã§ã³ãããªããã ã£ããâ¦
ããã®ç·´ç¿åé¡ããã£ã¦ããã¨ãã³ã³ãã¤ã«æã«ãããªè¦åãããåºãã $ javac jp/co/itboost/stexam/algo/MailRuleExamMain.java 注:./jp/co/itboost/stexam/algo/RuleList.java ã®æä½ã¯ãæªãã§ãã¯ã¾ãã¯å®å ¨ã§ã¯ããã¾ããã 注:詳細ã«ã¤ãã¦ã¯ã-Xlinâ¦
ä»æ¥ã¯ã¢ã«ã´ãªãºã ç·¨ãã®1ãæ£è¦è¡¨ç¾ã Javaç·´ç¿åé¡éï¼ã¢ã«ã´ãªãºã ç·¨(1)(å¦ç¿/è³æ ¼å¯¾ç) Javaã¯RubyãPerlã¨ãã£ãã¹ã¯ãªããè¨èªã¨æ¯ã¹ã¦ãæ£è¦è¡¨ç¾ãè¨è¿°ããã®ãé¢åã ãªããã¨ããã®ã第ä¸å°è±¡ãããã ãã«åä½ãããã¨ãã«ããã£ã¡ãããã£ãæããâ¦
ä»æ¥ãããªãã¿ãã¡ãã®ç·´ç¿åé¡ã Javaç·´ç¿åé¡éï¼ãªãã¸ã§ã¯ãæåç·¨(3)(å¦ç¿/è³æ ¼å¯¾ç) ä»åã¯GoFãã¶ã¤ã³ãã¿ã¼ã³ã®ãããã¨ãã¦ãStrategyãã¿ã¼ã³ã¨Facadeãã¿ã¼ã³ããåå¼·ã ç·´ç¿åé¡ã¯ãããªã«é£ãããªãã£ãã ãã ããã¶ã¤ã³ãã¿ã¼ã³ã¯å ¨é¨ã§23種â¦
Javaã®ãåå¼· Javaç·´ç¿åé¡éï¼ãªãã¸ã§ã¯ãæåç·¨(2)(å¦ç¿/è³æ ¼å¯¾ç) æ¨æ¥ããæ¸ãã³ã¼ãéãå¤ãã¦ã¡ãã£ã¨å¤§å¤ã ã£ãã ã©ããæ½è±¡ã¯ã©ã¹ã®ä½¿ãæ¹ã«ã¾ã æ £ããªãã æ½è±¡ã¯ã©ã¹ ã¯ã©ã¹é層ã®è¨è¨ã®ããã«ãæ¦å¿µã¨ãã¦ã®ã¿åå¨ããã¯ã©ã¹ classã®å®ç¾©æã«abâ¦
Javaã®ãåå¼· Androidã¢ããªãä½ããã¨åå¼·ãã¦ãããJavaã®åºæ¬çãªã¨ãããããªãå¿ãä¸ã å¹³æ¥ã®æéããã¾ããªãã¨ãã«ç·´ç¿åé¡ã解ãããã«ãã¦ããã ã¨ãããããä»æ¥ãã£ãã®ã¯ã Javaç·´ç¿åé¡éï¼ãªãã¸ã§ã¯ãæåç·¨(å¦ç¿/è³æ ¼å¯¾ç) åºç¤ç·¨ã¯ãã¾ãâ¦
ã¾ãã¯gemãã¤ã³ã¹ãã¼ã«ããã¨æãããã$JRUBY_HOME/bin/gemãæ¢ã«ããã¾ããã ãããããããå®è¡ããã«ã¯ãjrubyãæ示çã«æå®ããªãã¨ããã¾ããã ãªã®ã§ã.bashrcã« alias jgem='jruby $JRUBY_HOME/bin/gem' ã¨æ¸ãã¦ã以éã¯jgemã§ã¤ã³ã¹ãã¼ã«ãâ¦
JRubyã¯ææ°ã®ãã®ã使ãããã®ã§ãSubversionã§ã¨ã£ã¦ãããã¨ã«ããã ã¾ãã¯JDK6ã¨antã®ã¤ã³ã¹ãã¼ã«ã $ sudo apt-get install sun-java6-jdk ant次ã«ãSubversionçµç±ã§JRubyã®åå¾ããã«ãã $ svn co http://svn.codehaus.org/jruby/trunk/jruby $ cdâ¦
JRubyã使ãããã£ãã®ã ãã©ãªããããããããªãjavaãå ¥ã£ã¦ããã®ã§ã Fedora Core 5ã«Sun Javaãã¤ã³ã¹ãã¼ã« - OSS EXPOã¨ãhide-k.net#blog: Fedora Core 6ã«Flex2ãã¤ã³ã¹ãã¼ã«ãã¦éã¶ã¨ãããåç §ããªããã ããããããjdk-1_5_0_11-linux-i586â¦
ä¾ãã°ãtest.txtã«test_01.txtãã¤ããããã«ããã®å段éã¨ãã¦å©ç¨ãã¾ããJavaã¯ããã¾ã触ã£ããã¨ãªãã®ã§ã²ãã£ã¨ããããã£ã¨ããæ¹æ³ãããã®ããã ã¨ãããããJ2SE 1.4以éã¯æ£è¦è¡¨ç¾ã使ããã®ã§ããã§ã import java.util.regex.*;ã¾ãã¯æ£è¦â¦