Java
åä½ç¢ºèªããç°å¢ã¯ãMac OS X 10.10.1 (Yosemite)ã§ãã åæäºé JDK9ã®ãã«ãã«ã¯JDK8ãå¿ è¦ã§ãï¼ã¨ã¼ã°ã«ãã¿ããã§ããï¼ããããBootstrupJDKã¨å¼ã³ã¾ãããã®ãããJDK9ããã«ãããç°å¢ã§ã¯ãJavaãå®è¡ãããJDK8ãåãããã«ãã¦ããã¾ãããããâ¦
éæã®å¤ã«ã©ãæ¸ãã¸è¡ã£ã¦ãã¾ããã ãªãã©ã¤ã³ãªã¢ã«ã¿ã¤ã ã©ãæ¸ãã¨ã¯ çã§å ±éã®ãé¡ã好ããªããã°ã©ãã³ã°è¨èªã§è§£ãã¦ãçµæãè¦ãåãä¼ã§ãã ä»åã®ãé¡ã¯ããã¬ãã¹ã³ã¯ä½ææ¥ï¼ãã§ãã åé¡: http://d.hatena.ne.jp/torazuka/20140509/yhpg â¦
OOSCèªæ¸ã¤ã¥ããæ¨æ¥ã¯3ç« ã¾ã§èªãã§ãæ¼ç¿åé¡E3.1ï¼p.82ï¼ã«ã¤ãã¦ä¼è©±ããã®ã§ããã®ã¡ã¢ãæ¸ãã¾ãããã®ç¯ã¯ãããã¨ããããã¾ã m(_ _)m ï¼èº«è¿ãªæ¹ E3.1 ããã°ã©ãã³ã°è¨èªã®ã¢ã¸ã¥ã¼ã«æ§ã©ã®ããã°ã©ãã³ã°è¨èªã§ãããããè¯ãç¥ã£ã¦ããè¨èªã®â¦
ä»æ¥ã¯3æã®æçµæ¥ææ¥ã§ããã¨ã¼ãããã§ã¯ãµãã¼ã¿ã¤ã ï¼daylight saving timeï¼ãã¯ãã¾ãã¾ããããJava 8ã®æ°ããDate and Time APIã®ä½¿ãæ¹ãå°ã確èªããããã«ãã¿ã¤ã ã¾ã¼ã³ãç°ãªãæ¥ä»ãã¼ã¿ã®å¤æãããµãã¼ã¿ã¤ã ã¨ããé¡æã§è©¦ãã¦ã¿ã¾ããã â¦
ææã¾ã§4é£ä¼ã§ã®ãã³ããã¦ãã¦æ¸ãã®ãé ããªãã¾ããããéææ¥ã«JJUGã®ã¤ãã³ãã«è¡ã£ã¦ãã¾ãããä¼å ´ã¯éå±±ã®ãªã©ã¯ã«ããã§ãããJava8ããã£ãã使ã£ã¦ããããã¨æãã¾ããä»ã®ä»äºã¯C#ãªã®ã§ãã¡ãã£ã¨ããå人çãªä½æ¥ãããªãã©ã¤ã³ãªã¢ã«ã¿ã¤â¦
第19åã©ãæ¸ãã®è§£çã«é¢é£ãã¦ããªã³ã°ç¶ã®æ°åã辿ãã¤ãã£ãªã ãç¥ãããã¨è¨ã£ã¦ããã¨ãããfinalfusionããããæãã¦ããã ããã®ã§ã¡ã¢ãã¾ãããããã¨ããããã¾ã! ãªã³ã°ã辿ãã³ã¼ã Before ãªã³ã°ã®æå°å¤ã¨æ大å¤ãè¡ãæ¥ã§ããããã¼ãã³ã¼â¦
ä¹ ãã¶ãã«ã¤ãã³ãï¼http://atnd.org/events/46348ï¼éå¬åã«åèåé¡ã解ãã¾ãããä»åã¯ããåæåºæ°ãã§ãï¼ åé¡: http://nabetani.sakura.ne.jp/hena/ord17scheherazade/ ãã¨ãã°101, 234432ã®ããã«ãå³ããèªãã§ãå·¦ããèªãã§ãåãæ°åã®ä¸¦ã³ãâ¦
åæã«JJUG CCC 2013 Fallï¼http://www.java-users.jp/?page_id=695ï¼ã¸è¡ã£ã¦ãã¾ãããäºåã«ãç¥ããããã®ãå¿ãã¦ãã¾ãããã17:15ã18:05ã®ã»ãã·ã§ã³ã§JVMã®ã½ã¼ã¹ã³ã¼ããªã¼ãã£ã³ã°ã«ã¤ãã¦ã話ããã¾ããã®ã§ãçºè¡¨è³æãå ¬éãã¾ãã R5-5 JVMã³â¦
Javaã®å¼±åç §ã«ã¤ãã¦å¾©ç¿ãã¦ãããããã¤ãã®ããã«ã²ãã ã¾ããã®ãã¼ã¸ã«è¡ãçãã¾ãããã使ç¨å¤±æä¾ãã¨ãã¦ç´¹ä»ããã¦ããä¾ãåãããããã£ãã§ããå°ãã ãã³ã¼ãçãæ¸ã足ãã¦ãåãã確èªãã¾ããã åè Javaå¼±åç §ã¡ã¢(Hishidama's Java Weaâ¦
æ¸ç±ãä¸çã§ãã£ã¨ãå¼·åãª9ã®ã¢ã«ã´ãªãºã ãã®1ã¤ç®ã®ã¢ã«ã´ãªãºã ã®ç« ããã©è¦ãã¾ããã解説ã«ä½¿ãããä¾ããã©ãæ¸ãã®åé¡ã¿ããã ãªãã¨æã£ãã®ã§ã試ãã«Javaã§æ¸ãã¦ã¿ã¾ãããä¸çã§ãã£ã¨ãå¼·åãª9ã®ã¢ã«ã´ãªãºã ä½è : ã¸ã§ã³ã»ãã³ã¼ããã¯,é·â¦
第9åã®ã©ãæ¸ãã®åé¡ã®ãããã§æ°ã¥ãã¾ããããEnumã®staticã¡ã½ããã®valueOfã¯ãã³ãªã§ããï¼æåãä¸ãã¦Enumã®å¤ãåã£ã¦ããã ãã®åºæ¬çãªã¡ã½ããã§ãããªã«ããã¾ããã¨ããæãã§ããâ¦â¦ããã®ã¡ã½ããã使ãã°ãå ¥åæåï¼charï¼ã«ããå¦çã®æ¯â¦
å æ¥ã®ã©ãæ¸ãã§ããJavaã®é åã«å¯¾ããä»£å ¥ã®ãã°çæåãã¨ããã®ã話é¡ã«åºã¾ãããä½ã®è©±ãæ°ã«ãªã£ãã®ã§èª¿ã¹ãã¨ãããArrayStoreExceptionã®ãã¨ã®ããã§ããããããããã¤ã§ãã import org.junit.Test; class Mother { } class Child extends Motâ¦
æ¨æ¥ã¯ã第7å ãªãã©ã¤ã³ãªã¢ã«ã¿ã¤ã ã©ãæ¸ããã¸è¡ã£ã¦ãã¾ããã ãªãã©ã¤ã³ãªã¢ã«ã¿ã¤ã ã©ãæ¸ãã¨ã¯ éè°·ãããåºãã¦ãã ãããé¡ããåå è ã好ããªããã°ã©ãã³ã°è¨èªã§è§£ãã¦æ¥½ããä¼ã§ãã ä»åã¯ããã®ãã³ã座ããããã§ãï¼ åé¡ã¨çããã®è§£â¦
ä¸è¬çãªã¤ãã£ãªã ãåããããæ©ãã§ãã¾ããããã¤ãæ¹æ³ãæãã¾ãã æ¹æ³1: ï¼ã½ã¼ããã¦ãåé¡ãªããã°ï¼binarySearchã使ã char[] chars = new char[]{'a', 'b', 'c', 'd', 'e'}; char target = 'c'; Arrays.sort(chars); int index = Arrays.binaryâ¦
Javaã®ã³ã³ã¹ã¿ã³ããã¼ã«ã®Long_infoæ§é ä½ã«ã¤ãã¦ãããããã¼ã¨Twitterã§è¨ã£ã¦ããã¨ãããfinalfusionããã«æãã¦ããã£ã¦çåã解ããã®ã§ãã¡ã¢ãã¦ããã¾ãã ã¯ã©ã¹ãã¡ã¤ã«ã®ãããã Javaã¯ã©ã¹ãã¡ã¤ã«ã®ãã¤ããªã®ä»æ§ã¯ã次ã®ããã«ãªã£ã¦ãâ¦
ããæè¿ãããæ°ãã¢ã¬ã®æ£®ã«å®¶åºãã¦ãã¾ãããå é±éæã¯ã第5å ãªãã©ã¤ã³ãªã¢ã«ã¿ã¤ã ã©ãæ¸ããã¸è¡ã£ã¦ãã¾ãããä»åã¯ã大貧æ°ã§ãï¼ åé¡: http://nabetani.sakura.ne.jp/hena/ord5dahimi/ æé£ããã¨ã«ãåå¿è åãã®é¨ååé¡ãç¨æããã¦ãã¾ãâ¦
å æ¥ãã¡ã½ããã®äºåæ¡ä»¶/äºå¾æ¡ä»¶ã®è©±ããã¦ããã¨ããããã¡ã®ãããã¼ããããããJavaã®ã³ã³ãã©ã¯ãã®è¡¨ç¾ããã¾ãã«è²§å¼±ãã¨è¨ã£ã¦ãã¾ããããã¨ãã°ã å¼æ°ã®å¤ã®ç¯å²ãã§ãã¯ãã§ããªã ã¡ã½ããã®å¼ã³åºãé ãä¿è¨¼ãã¦ãããªã ã¨ãã£ã話ã§ããâ¦
Javaã使ã£ã¦ããããã«ãã¡ãã¡ã§nullãã§ãã¯ããã¦ããã¨ãããã²ã¤ã³ã©ã¨ãããã¦ãã¾ã£ãã®ã§ã¡ã¢ã§ããï¼ãææãããã¨ããããã¾ãï¼nullãå ¥ã£ã¦ãããããªã³ã¼ããæ¸ããªããã大ååã ããã§ããçç±ã¯ãå®å ¨ã®ããã nullã§åæåããªã null以â¦
æ¨æ¥ã®ç¶ããã¨ãããããè¨æ£ã§ãã ã¡ã¢: JUnitã®expectedãã£ã¼ã«ãã¨Ruleã¢ããã¼ã·ã§ã³ã§ä¾å¤ã®ãã¹ã http://d.hatena.ne.jp/torazuka/20121002/junit JUnitã®Ruleã¢ããã¼ã·ã§ã³ã®ä½¿ãæ¹ãç¥ã£ã¦åãã§ãã¾ãããã1ã¤ã®ãã¹ãã¡ã½ããã®ä¸ã§ã¯ã1åâ¦
次ã®è¨äºãèªãã§ãåãã¦ç¥ã£ãã®ã§ã¡ã¢ã Testing Custom Exceptions w/ JUnit's ExpectedException and @Rule http://www.ensor.cc/2012/09/testing-custom-exceptions-w-junits.html ãã®ãããªãã¹ã対象ã®ã³ã¼ããããã¨ãã¾ãã import java.util.Arrâ¦
ããããªãè¦ãããªã誰ãæãã¦ãã ãããç·ç§°åã使ãã°ããã¡ãããããããï¼ï¼ï¼ãªããããã import static org.junit.Assert.assertEquals; import org.junit.Test; public class Inject { interface Proc { int execute(final int n, final int m); â¦
å æ¥æ¸ããã¹ã¿ãã¯ãã·ã³ã¡ãããå°ãä¿®æ£ãã¾ããã ï¼ååã®æ¥è¨ï¼ååæ¼ç®ãããã¹ã¿ãã¯ãã·ã³ http://d.hatena.ne.jp/torazuka/20120829/stackmachine ã¡ãã£ã¨ããæ¹è¯ãããã ãã®ã¤ããã§ããããæ¥ãããããã¹ãè¦ã¤ããã®ã§ãã¡ã¢ãæ®ããã¨ã«ãâ¦
å é±ã®æ°´ææ¥ããJJUG Night Seminar -Java VM & LT & ç´æ¶¼ä¼-ãã¸è¡ã£ã¦ãã¾ãããå½æ¥ã¯ãã»ãé ãã§å¸°ã£ã¦ãã¦ãã¹ã¿ãã¯ãã·ã³ãæ¸ãã¦éãã ãæºè¶³ãã¦å¯ã¦ãã¾ã£ãã®ã§ãæ¹ãã¦ã»ãã·ã§ã³ã®ã¡ã¢ã¨ææ³ãæ¸ãã¦ããã¾ãã# ãã½ã³ã³ãå¿ãã¦è¡ã£ããã¨â¦
ãããã°ããã®ãã«ãã³ã¹ã¿ãã¯ã®åçãè¦ã¦ãã¦ããµã¨æ¸ããããªã£ãã®ã§ãéãã¼ã©ã³ãè¨æ³ãå ¥åã¨ãã¦ååæ¼ç®ãè¡ããçµæãè¿ãã¾ããï¼è¿½è¨: 2012/9/6ï¼ ãã®è¨äºã®ã³ã¼ãã«ã¯ã誤ãã2ç®æããã¾ãï¼1:é¤ç®ã®ãªãã©ã³ããéã2:ãã¹ããã¼ã¿ã¯"14+3â¦
ãå¤ä¼ã¿ãã¤ããªå ¥é 2012 第2æ¥ç®ãã«åå ãã¦ãã¾ããã第1æ¥ç®ã«å¼ãç¶ãã主å¬ã®ä¸èªãããã¹ã¿ããã®çãããã©ãããããã¨ããããã¾ããï¼ ï¼ç¬¬1æ¥ç®ï¼Javaã®ã¯ã©ã¹ãã¡ã¤ã«ã®èªã¿æ¹ http://d.hatena.ne.jp/torazuka/20120820/cafebabe ãã£ãã㨠â¦
æ¥æã«ããå¤ä¼ã¿ãã¤ããªå ¥é 2012 第1æ¥ç®ãã«åå ãã¦ãã¾ãããè²ã ã¨åå¿è 丸åºããªè³ªåããã¾ãããã詳ããæ¹ãä¸å¯§ã«æãã¦ãã ãã£ããããã§ãçåã解決ããªããé²ããã¨ãã§ãã¾ããããããã¨ããããã¾ããåå¿ã®ããã«ãå¦ç¿ãããã¨ãã¡ã¢ãâ¦
ååã®ãçåã¡ã¢: logbackã§åä¸ã¬ãã«ã®è¤æ°ãã°ãç°ãªãåºåå ã«åºããããã®è§£æ±ºç·¨ããåä¸ã¬ãã«ã®ãã°ãç¨éã«å¿ãã¦åºãåããã話ã®ç¶ãã§ãã師å ããåèã«ãªãæ å ±ãããã ããç¡äºå®ç¾ã§ãã¾ããããããã¨ããããã¾ããJaninoEventEvaluator â¦
ï¼è¿½è¨ï¼ ãã®è¨äºã®è§£æ±ºç·¨ã¯ãã¡ããhttp://d.hatena.ne.jp/torazuka/20120619/logbacklogbackï¼http://logback.qos.ch/ï¼ã§ãããããã¨ãã§ããªãã¦å°ã£ã¦ããã®ã§ãã¡ãã£ã¨æ´çãã¾ããlogbackã¯ãJavaã®ãã®ã³ã°ã©ã¤ãã©ãªã§ãã次ã®ãã°ã¬ãã«ãããâ¦
ä¼æãåã£ã¦ãJJUGã®ã¯ãã¹ã³ãã¥ããã£ã«ã³ãã¡ã¬ã³ã¹ã¸è¡ã£ã¦ãã¾ãããããããè´ãã¦ãå°è±¡ã«æ®ã£ãã®ã¯3ã¤ã®ã»ãã·ã§ã³ã§ãã ãªã©ã¯ã«ã®ä¸ã®äººã«ããJCPã®ã話 Javaã®æ¨æºåã誰ãã©ããã£ã¦å®æ½ãã¦ãããã¨ãã解説ã§ãããåãã¦ç¥ã£ããã¨ãå¤ãâ¦
Javaã®Collectionå¨ãã®ã¯ã©ã¹ãèªã¿ç´ãã¦ãã¦æãããã¨ã®ã¡ã¢ã¨ãããéè«ã§ããJavaã®java.util.Collectionã¤ã³ã¿ãã§ã¼ã¹ã«ã¯ãtoArrayã¨ããã¡ã½ãããããã¾ããtoArrayã¡ã½ããã¯ãã³ã¬ã¯ã·ã§ã³ã®å®è£ ã¯ã©ã¹ã®ã¤ã³ã¹ã¿ã³ã¹ããé åã«å¤æãã¦è¿ãã¾â¦