çµåããã®Javaå
¥éæ¸ããJavaè¨èªããã°ã©ãã³ã°ã¬ãã¹ã³ããJava7ã«å¯¾å¿ãã第ï¼çãåºãã¨ãããã¨ã§ãæãåºãã話ã
ã¾ãã¯åºçããã§ã¨ããããã¾ãããã¤ãããã¾ã§ããããã ãè©ä¾¡ã¯ã¡ãã£ã¨å³ããã§ãã
Javaè¨èªããã°ã©ãã³ã°ã¬ãã¹ã³ 第3ç(ä¸) ãªãã¸ã§ã¯ãæåãå§ãããJavaè¨èªããã°ã©ãã³ã°ã¬ãã¹ã³ 第3ç(ä¸) Javaè¨èªãå§ããã
- ä½è : çµå浩
- åºç社/ã¡ã¼ã«ã¼: SBã¯ãªã¨ã¤ãã£ã
- çºå£²æ¥: 2012/11/14
- ã¡ãã£ã¢: åè¡æ¬
- è³¼å ¥: 1人 ã¯ãªãã¯: 7å
- ãã®ååãå«ãããã° (8件) ãè¦ã
ä»åã®ãJavaè¨èªããã°ã©ãã³ã°ã¬ãã¹ã³ãããã¯ãä¸å·»ã§ifãforãé
åãä¸å·»ã§ã¯ã©ã¹ãã¤ã³ã¿ãã§ã¼ã¹ã¨ããæ§æã«ãªã£ã¦ãã¦ãï¼åã«ã¾ã¨ãããªãã£ããã®ãã¨ããæãã¬ãããªãã
ãããã¦5040åã¨ããã®ã¯å
¥éæ¸ã¨ãã¦é«ä¾¡ã ããä¸å·»ã ãã§ã¯å½¹ã«ãããªãã
ã¾ã çºå£²ããã¦ããªãã®ã§å
容ã¯è¦ã¦ããªãã®ã ãã©ãçµåããã®æ¬ã§ããããã«ã¯è¨è¿°ããã°ãããã¨ãããã¨ã«çãã®ä½å°ã¯ãªããã ãããããäºååã¨ããæ§æã¯ãã£ãããªãã
ã¾ããéããæ§æã¨ãã¦ãããã¯ãå¤ããå®éã®ããã°ã©ã ã§ã¯é
åããListã®ã»ãã使ãå ´é¢ãå¤ãã«ãããããããã³ã¬ã¯ã·ã§ã³ã«é¢ãã¦ã¯ä¸å·»ã®æå¾ã«ãã¾ãã®ããã«è¼ãããã¦ããã
ãã®ãããªæ§æã¯ãé»ææã®Javaå
¥éæ¸ã«ããè¦ãããæ§æã§ãå¤ãã®å
¥éæ¸ãä¸å·»ã§if/for/é
åãä¸å·»ã§ã¯ã©ã¹/ã¤ã³ã¿ãã§ã¼ã¹ã¨ããååã«ãªã£ã¦ããããªããã®ãããªæ§æã«ãªã£ã¦ãããã¨ããã¨ãåæã®å
¥éæ¸ã¨ããã®ã¯ãçµåãããå«ãã¦ãç¢æ²¢ä¹
éãææ´æ¯å¤ãé«æ©éº»å¥ã¨ãã£ãCã®å
¥éæ¸ãæ¸ãã¦ãã人ããCé¨åãJavaã«ç§»æ¤ãããã®ã¨ããã®ãå¤ãã£ãããã ãCã使ã£ã¦è§£èª¬ãã¦ããé¨åã«Javaãªãã§ã¯ã®è©±é¡ã追å ããã¨ããæ§æã
ãã®ãã¡ã§é«æ©éº»å¥ããã®ãããããJavaãã¯ï¼åã«ã¾ã¨ã¾ã£ã¦ãã¦ãè¨è¿°ãä¸å¯§ã§ã説æãçãé¨åãå¤ããã©ãããå´ã£ã¦èªã¿ãããã«ã¤ãªãã£ã¦ã人æ°ããã£ãã
ãã ããã¯ããããã®Cè¨èªå
¥éæ¸ç±æ¥ã®æ¬ã«ã¯æ§æä¸ã®è´å½çãªæ¬ ç¹ããã£ã¦ãããã¯ãJavaã®è¨èªãã説æãã¦ãªããã¨ãããã¨ã ã£ããã¾ããCã«ãããå
¥åºåã«ã¤ãã¦ã¯èª¬æããã¦ãããã©ã
ãã以å¤ã®å
¥éæ¸ã¯ãAWTã³ã³ãã¼ãã³ãé
ç½®ãããGraphicsã§ã¢ãã¡ã¼ã·ã§ã³ãã¦ã²ã¼ã ä½ã£ãã楽ãããµã³ãã«ãä½ãã¤ã¤ãããã°ã©ã çãªè§£èª¬ã¯ãªãæå¿«ãªæ¬ãå¤ãã£ãã®ã§ãããã°ã©ã ã®å
¥éã«ã¯ä½¿ããªãã£ãã
Cè¨èªã¯ãè¨èªã¨stdioã ãããã£ã¦ãå®ç¨ã©ã¤ãã©ãªã¯ç¬èªã®ãã®ãã³ã³ãã¤ã©ã¨ã»ããã«ãªã£ã¦ããã®ã§ãCè¨èªå
¥éæ¸ã§ã¯ã©ã¤ãã©ãªã«ã¤ãã¦æ±ããªãã®ãå½ç¶ã ã£ãã
ã©ã¤ãã©ãªã¨ã³ã³ãã¤ã©ã¨ããããã¦ãå¦çç³»ãã¨å¼ã°ãã¦ãããã©ãã©ã¤ãã©ãªã¯VisualCã ã¨ãTurboCã¨ãããããã®å¦çç³»ã®èª¬ææ¸ãè¦ã¦ãã ããããã¨ããã¹ã¿ã³ã¹ãã¡ãªã¿ã«ã説ææ¸ã¨ãã£ã¦ããå½æã®å¦çç³»ã®èª¬ææ¸ã®éã¯ãã³ããªãã¦ããããã²ã¨ã¤ã®ç®±ã«å
¥ã£ã¦ããã®ã ãããProfessionalçãªã©ã¯ç®±ã®åãã80cmããããã£ãããã®åãã«ãå°éçãªã½ããã§ãç´ äººãè³¼å
¥ãããã¨ã¯èãã«ãããProfessionalæããã£ãã¨è¨ã£ã¦ãããCD-ROMãæ®åããã¨èª¬ææ¸ã¯å
¨é¨CD-ROMã«ç´ãããã¦ãStandardçãè²·ã£ã¦ãProfessionalçãè²·ã£ã¦ããã®è¾ºã®ã½ããã¨åãç®±ã«ãªã£ããã¨ã«å¯ããæãããã人ãå¤ãã¨æããä»ã§ã¯ç®±ã§ã½ãããè²·ãã¨ãããã¨ããªãããã ãã©ã
話ãæ»ãã¦ã
Javaã®å ´åã¯ãã©ã¤ãã©ãªãå®è¡ç°å¢ã¾ã§å«ãã¦Javaã§ãCã«æ¯ã¹ãã°è¨èªã¨ã©ã¤ãã©ãªãå¯æ¥ã«ãªã£ã¦ãããå
¥éç·¨ã§è¨èªé¨åãå®è·µç·¨ã§ã©ã¤ãã©ãªãã¨ããæ§æã«ãç¡çããããå
¥éç·¨ã§Cç¸å½ãå¿ç¨ç·¨ã§ãªãã¸ã§ã¯ãæåãå®è·µç·¨ã§ã©ã¤ãã©ãªã¨ããããã¨8000åè¿ãã«ãªããããããªãã¨çµ±ä¸çã«æ±ã£ãæ¬ãæ¢ãã®ãé£ããããçµåããã®ãJavaè¨èªããã°ã©ãã³ã°ã¬ãã¹ã³ãã2005å¹´ã®æ¹è¨ï¼çã¾ã§ã¯ãã³ã¬ã¯ã·ã§ã³ãæ±ã£ã¦ããªãã£ãããããããJavaãã«ãã¦ãæ´»ç¨ç·¨ã¾ã§å«ããã°5500åè¿ããªã£ã¦çµæ§é«ãã
ã¨ãããã¨ã§ãä¸åã§ãªãã¸ã§ã¯ãæåãã©ã¤ãã©ãªã®èª¬æã¾ã§å«ã¾ãããç¬ç¿Javaãã«äººæ°ãåºãããã ãä¸åã¨ãã¦ã¯3780åã§å²é«ã ã£ããã©ãä½åãè²·ãããããããã
ã¨ãããã¾ãããã®æ¬ã®è¨è¿°ãé£ãããã¦ã²ã©ããåæã®ãJavaã¯é£ãããã¨ããè©å¤ã®1/5ãããã¯ãã®æ¬ã®å½±é¿ãããªãã ãããã3/5ãããã¯java-houseã¨ããã¡ã¼ãªã³ã°ãªã¹ãã®é«æ¨æµ©å
ã¨ãã人ç©ã®ããã ã¨æããã©ã
ãã®ãç¬ç¿Javaãã¯ãæ¹è¨ãã¦ããã°ããList/Mapã§ã¯ãªãVector/Hashtableã説æãã¦ããããã¦ãããªã¹ã¹ã¡ããªãæ¬ããããèªãã¹ãã§ã¯ãªãæ¬ãã«ã°ã¬ã¼ãã¢ããããã
ãããããããã¡ã«ãCããã®ç§»æ¤ã§ã¯ãªãJavaãã¤ãã£ãã®å
¥éæ¸ãåºãããã«ãªã£ã¦ãåé¡ã¯è§£æ±ºãããã«è¦ããã®ã ãã©ãæ代ã¯JSP/ãµã¼ãã¬ããæ代ã«ãªã£ã¦ãä»åº¦ã¯Webã¾ããã¾ã§åå¼·ãå¿
é ã«ãªã£ãã
å½æJavaãæããä»äºããããã£ã¦ãã®ã ãã©ãããããã¨Javaå
¥éããWebã¾ã§ã®æç§æ¸ãæ¢ãã®ã大å¤ãJavaã§ããã°ã©ã ãå§ãã人ãä¸åã§ä½æ¥ã«å
¥ãããããªæ¬ããªãããã¨ãããã¹ãã¨ãã£ã¿ã¨ã³ãã³ãã©ã¤ã³ãã¼ã¹ã§é²ãã¦ãå
¥åééãæ¢ãããã¡ã¤ã«åã®ãã¹ãªããã«10å20åè²»ããã®ãé常ã«ãã£ãããªãã£ããã§ãIDEã使ãããã£ããEclipseã¯äººæ°ã ã£ããã©ãææ¥ä¸ã®ã ããªæéãæ¸ããã«ã¯åä¸è¶³ããã¦ãå½æã¯Forteã ã£ãNetBeansã使ããã¨ã«ããã
ã¨ããã¨ããã§ãçµå±ããã¹ãã¯èªåã§æ¸ãã¦ãå½æã®èªåã®ãµã¤ãã«è¼ãã¦ãããã¦ããããæ¬ã¨ãã¦ã¾ã¨ã¾ã£ãã®ããåµãJavaãã¨ããããããã
ãã¾ã ã«Eclipseã®æ°ããã®ãåºããã³ã«ãå
¥éã§ã®ææ¥ã«ã¤ãããããã«ãªã£ãã確èªãã¦ããã ãã©ããããããã使ãããããªã£ã¦ãããªãã
Javaã¯æºåãããã©ãã¨ããã¯ãããã¾ã§ã®è¨å®ãå¤ãã¨ããããæé çãªæªè©ã¯ã90%ãããã¯Eclipseã®ããã ã¨æãã
ãã¨ããã®ã¨ãã«æåã¯ãç¬ç¿Javaãããã§ã«ä½¿ã£ã¦ããã®ã ãã©ã絶対ã«è¨±ããªããããã絶対ã«ã ãã¨ããææ³ããã£ãã次ã«æ¤è¨ãã¦ã使ã£ã¦ã¿ãã®ããããããJavaãã ã£ããã©ãç°¡åãªã¨ããã¯ãããã解説ãã¦ããã¦ããã©é£ããé¨åã¯è足ããã§ããã¾ãã§æ¼ ç¶ã¨ãã解説ãã¦ããã¦ãªãã¦ããã£ã¦ããªãã¦ãåãã¨ããçµæã«ãªã£ãã
ãJavaè¨èªããã°ã©ãã³ã°ã¬ãã¹ã³ãã¯ãï¼åããã¨ç©ççã«éãã®ã¨ãããæ¬ã§ã¯ãããã©è·æ¥è¨ç·´çã«ä½¿ãã«ã¯ããã¬ã¸æã¡ã«è¨ç®ãæããããã«æ°å¦ã¬ã¼ã«ãèªã¾ããããããªãã¹ãããããã£ã¦ãããã¯ä½¿ããªãã£ãã
ç¢æ²¢ä¹
éãææ´æ¯å¤ã¨è¨ã£ã人ãã¡ã®æ¬ã¯ãå½æã®æç¹ã§ãå¤ãããã¦ãæ¤è¨ãããã¦ãªãã
ä»ã¯ããããªæ¬ãåºã¦ã¦ããã¨Javaã¨ãJavaæè¡è
ã¨ãã®ä½ç½®ã¥ããããã£ã¦ãã¦ãç¶æ³ã¯å¤ãã£ããã©ã
ããã¡ãªã¿ã«ããåµãJavaãã®æ¹è¨ã®ä½æ¥ããã¦ãã¨ãããªãã§ããæå¾
ãã¦ããã£ã¦ã人ã«ã¯æ®å¿µãªãããJava8対å¿ã®æ診ãã¦ã¿ãããªã