ãã¡ã¤ã«æ å ±ã«ãã´ãªï¼ã¿ã°ï¼documentãã¡ã¤ã«åstandard-javadocæçµæ´æ°2007-02-16 18:19種é¡HTMLä½æè J.Matsuoæ¦è¦ï¼ªï½ï½ï½ï½ï½ï½ã®è¨è¿° â è¨è¿°ç®æ 1.ã¯ã©ã¹ãã¡ã½ãããã¯ã©ã¹å¤æ°ãã¤ã³ã¹ã¿ã³ã¹å¤æ°ãè¨è¿°ããã åè¡ã«ã¯å¿ ãJï½ï½ï½ï½ï½ï½ã³ã¡ã³ããè¨è¿°ããã â æ¸å¼ 1.å ±é ã»ææ¸ã¯ä½è¨æ¢ãç¨ãã¦ãç°¡æ½ã«è¨è¿°ããã ã»ææ¸ãè¤æ°è¡ã«ãããå ´åã¯ãå é ã«<br>ãã¤ããã (æ¹è¡ã¿ã°ãå é ã«ä»ããã®ã¯å¯èªæ§ã®åä¸ã®ããã§ãã) 2.ã¯ã©ã¹ ã»ä½¿ç¨å¯è½ãªï¼ªï½ï½ï½ï½ï½ï½ã¿ã° @version ãã¼ã¸ã§ã³æ å ±ãè¨è¿°ããã @author åæéçºè åãè¨è¿°ããã @see é¢é£ã¯ã©ã¹ãè¨è¿°ããã ä¾åé¢ä¿ããã¹ã¦è¨è¿°ããå¿ è¦ã¯ãªããä¾ãã°ãã®ã¯ã©ã¹ã ç¹å®ã®ã¯ã©ã¹ã®ããã ãã«åå¨ãã¦ããå ´åãªã©ã«ããã®ç¹å®ã®ã¯ã©ã¹ãè¨è¿°ããã ã»ãã©ã¼ããã /
ãããJavaã ããªãã¸ã§ã¯ãæåã ã¨è¨ã£ã¦ã ã¦ã¼ãã£ãªãã£ã¯ã©ã¹ã使ããã¨ã¯ããã¾ãããã ããã§ãã¦ã¼ãã£ãªãã£ã¯ã©ã¹ã¨ããã®ã¯ ãã£ã¼ã«ããã¡ã½ããã«å ¨ã¦staticãã¤ãã¦ãã¦ å ±éãã¸ãã¯ãæä¾ããã¯ã©ã¹ã®ãã¨ããã£ã¦ãã¾ãã ããããã¯ã©ã¹ãå ¨ãä½ããªãå ´åã£ã¦ãããã§ãããã ä»åãã¨ããããã¸ã§ã¯ãã®ã¦ã¼ãã£ãªãã£ã¯ã©ã¹ã çºãã¦ãããããµã¨ç®ã«æ¢ã¾ãã¨ãããããã¾ããã ã³ã³ã¹ãã©ã¯ã¿ãpublicã§å®£è¨ããã¦ãããããªããã ã³ã³ã¹ãã©ã¯ã¿ã«publicãã¤ãã¦ããã¨ãããã¨ã¯ã ã¤ã¾ããã¯ã©ã¹ãã¤ã³ã¹ã¿ã³ã¹åã§ããã¨ãããã¨ã ã§ããå ¨é¨staticãªã¡ã½ããã¨ãã£ã¼ã«ãã ããã ã¤ã³ã¹ã¿ã³ã¹åãã¦ãæå³ãªãã å¤åãã«ã¼ãã³ã¯ã¼ã¯çã«ãç¹ã«ä½ãèããã« publicã®ããã©ã«ãã³ã³ã¹ãã©ã¯ã¿ãä½ã£ããã ããã ã¾ããå®å®³ã¯ã»ã¨ãã©ãªãããã ãããªã«åé¡ã¯ãªãã¨æ
Overview ãããã®å½åã¢ã¸ã¥ã¼ã«ã¯ã©ããç¹å®ã®ã³ã¼ãè¦ç´ ã®èå¥åãæ¤è¨¼ãããã®ã§ãã å½åã¢ã¸ã¥ã¼ã«ã«ã¨ã£ã¦å¦¥å½ãªèå¥åã¯ãã® format ããããã£ã§æå®ãã¾ãã format ã®å¤ã¯å¦¥å½ãªèå¥åã® regular expression ã«ãªãã¾ãã 以ä¸ã¯ MemberName ã¢ã¸ã¥ã¼ã«ã«å¯¾ã㦠ã¡ã³ãèå¥åã 'm' ã§å§ã¾ããè±å¤§æåãç¶ãã ãã®å¾ã«è±æ°åãæ¥ãããã«æ§æããä¾ã§ãï¼ <module name="MemberName"> <property name="format" value="^m[A-Z][a-zA-Z0-9]*$"/> </module> ãã¹ã¦ã®å½åã¢ã¸ã¥ã¼ã«ã¯ããã±ã¼ã¸ com.puppycrawl.tools.checkstyle.checks.naming ã«å±ãã TreeWalker ã®ãµãã¢ã¸ã¥ã¼ã«ã§ãã Modules ã¢ã¸ã¥
@param parameter-name description ãã©ã¡ã¼ã¿ã«å¯¾ãã説æã表示ãã è¨è¿°å ´æ ï¼ ã¡ã½ãã è¤æ°è¨è¿° ï¼ å¯ åºåå½¢å¼ ï¼ å°å ¥ããããã¼ã¸ã§ã³ ãã®ä» ï¼
ãAndroidAnnotationsãã¨ã¯java ã®ã¢ããã¼ã·ã§ã³æ©è½ã使ã£ã¦ã·ã³ãã«ã§ã¡ã³ããã³ã¹æ§ã®é«ãã³ã¼ããæ¸ãã¾ããã¨è¨ããã®ãããã§ãã æ©éå°å ¥ãã¦ã¿ã¾ããã 1. jar ãã¦ã³ãã¼ã https://github.com/excilys/androidannotations/wiki/Download ãDownload AndroidAnnotations xxxããã¯ãªãã¯ãã¦é©å½ãªãã£ã¬ã¯ããªã«é ç½®ãå±éãã¾ãã ã¢ã¼ã«ã¤ããã¡ã¤ã«ã®ä¸ã¯ ã»androidannotations-xxx-api.jar ã»androidannotations-xxx.jar ã»HOW-TO.txt ã»javadoc ã»LICENSE.txt ã»sources ã¨ãªã£ã¦ãã¾ãã 2. ããã¸ã§ã¯ãã®è¨å® 1. ããã¸ã§ã¯ããå³ã¯ãªãã¯ã㦠Properties ãéãã¾ãã 2.
Checkstyle ã®ææ°æ å ±ãªã©ãæ°ã¥ããç¯å²ã§è¼ãã¾ããå¿ããã¨ãªããªãæ´æ°ãã¾ããã')" onmouseout="showDefault();">What's New ã³ãã³ãã©ã¤ã³ã®ä»ãAnt ã eclipse ãªã©ã®ä»£è¡¨çãã¼ã«ããã®ä½¿ç¨æ¹æ³ã解説ãã¾ãã')" onmouseout="showDefault();">Checkstyle ã¨ã¯
æåã¹ããªã¼ã ã¨æå符å·å java.ioããã±ã¼ã¸ã®Readerã¯ã©ã¹ãFileReaderã¯ã©ã¹ãWriterã¯ã©ã¹ãFileWriterã¯ã©ã¹ã¨ãã£ãæåã¹ããªã¼ã ã使ã£ã¦ãã¡ã¤ã«ã®èªã¿æ¸ããããããã°ã©ã ã¯ãã§ã«èª¬æãã¾ããããããã¯æåãæ±ã£ã¦ãã¾ããããæå符å·åã«ã¤ãã¦ã¯ç¹ã«æå®ããã¾ããã§ãããæå®ããªãå ´åã¯ããã©ã«ãã®æå符å·åãé©ç¨ãããç¹ã¯æèãã¦ããã¾ããããç°å¢ã«ãããã¾ãããWindowsã使ã£ã¦ããå ´åã¯MS932ãFedora Core5 Linuxã使ã£ã¦ããå ´åã¯UTF-8ãDebian GNU/Linuxã使ã£ã¦ããå ´åã¯EUC-JPã¨ãªãã¯ãã§ããç¾å¨ä½¿ç¨ããã¦ããããã©ã«ãã®æå符å·åã®å¤ãç¥ãããã«ã¯ã次ã®ãããªããã°ã©ã ã使ã£ã¦ç¢ºèªãããã¨ãã§ãã¾ããjava.nio.charset.Charsetã¯ã©ã¹ã使ãæ¹æ³ã¨ãjava.io.Inpu
é«åº¦ãªåºåæä½ ãããããå¤ãã®Javaè¨èªã®è§£èª¬æ¸ã§ã¯æåã«å ¥åºåã®æ¬è³ªã¯æãã¾ãã javaã§ã¯ãæ·±ãã³ã¢ã¯ã©ã¹ã®ç解ããªããã°å ¥åºåãæ¬è³ªçã«æä½ã§ããªãã®ã§ã ãã®ãããé常ã¯ãSysten.out.println() ã¨æ¸ãã°ç»é¢ã«æåãåºãã¾ããã¨ãããããªèª¬æã ãã§ã ã§ã¯ãããã§Javaã®å ¥åºåã«ã¤ãã¦è§¦ãã¦ã¿ããã¨æãã¾ã ãã¼ã¿ã®å ¥åºåã¯ãå®ã¯ç»é¢ã«éãã®ããã¡ã¤ã«ã«éãã®ãåãã§ã ããã¯ã¹ããªã¼ã ãã©ããæãã¦ãããã§ãã£ã¦ãSystem.out.println()ã¯æ¨æºåºåã¹ããªã¼ã ãæãã¦ããã«ããã¾ãã println()ã¡ã½ããã¯ãæ¹è¡æåãä»å±ãã¦ã¹ããªã¼ã ã«æååãæ¸ãè¾¼ãã¡ã½ããã§ã ãã®ã¡ã½ããã¯java.io.PrintStreamã¯ã©ã¹ã§å®ç¾©ããã¦ãã¾ã PrintStreamã¯ã©ã¹ã¯ãã©ãããã©ã¼ã ã®ããã©ã«ãã®æå符å·åã使ç¨ããã¤ãã«å¤æã
Java ã§ã¯ System.out.println ã¡ã½ãã㧠hello world çã®ã¡ãã»ã¼ã¸ãæ¨æºåºåã«åºåã§ãããããã®åºåå ã¯å¤æ´å¯è½ãªã®ã§ãã System ã¯ã©ã¹ã«ã¯ setOut ã¡ã½ãããããããã®ã¡ã½ãããç¨ã㦠System.out ãç½®ãæããäºãã§ããã ããã©ã«ãã§ã¯æ¨æºåºåã«ãªã£ã¦ããããsetOut ã§ãã¡ã¤ã«ã«åºåãã PrintStream ã渡ãã°ä»¥é System.out.println ã System.out.print ã¡ã½ããã®å¼æ°ããã¡ã¤ã«ã«åºåãããã ã³ã¼ãä¾ public class ReplaceStdOutTest { public static void main(String[] args) { try { // debug.log ã«åºåãã PrintStream ãçæ PrintStream out = new
èªåã¯ãããªæãã§ä½¿ã£ã¦ããã [[è¨å®ãã¡ã¤ã«ããã¦ã³ãã¼ã>http://www21.atwiki.jp/memodroid/?cmd=upload&act=open&page=%5B%E3%83%97%E3%83%AD%E3%82%B0%E3%83%A9%E3%83%9F%E3%83%B3%E3%82%B0%5DEclipse%E3%81%AE%E8%89%B2%E8%A8%AD%E5%AE%9A%E3%81%AA%E3%81%A9&file=eclipse.epf]] #image(1267596720.jpg) ãã®ãããªè¨å®ã«ããããã«å¤ããå ´æã ãã¯ã¼ãã®è²åã [è¨å®]-[Java]-[ã¨ãã£ã¿ã¼]-[æ§æã®è²ã®æå®] ã¿ãã®å¹ [è¨å®]-[Java]-[ã³ã¼ãã»ã¹ã¿ã¤ã«]-[ãã©ã¼ããã¿ã¼]ã®ãããã¡ã¤ã«ã®[è¨å®]-[ã¤ã³ãã³ã]-[ã¿ãã»ãµã¤ãº] é¸ææã®ãã¤ã©ã¤ãã®
æ°å¤ã®æååãã©ã¼ãããå¤æ ãã®ãã¼ã¸ã«ã¯ã以ä¸ã®ãµã³ãã«ãæ²è¼ãã¦ãã¾ãã ä¸ã®é ç®ãã¯ãªãã¯ãããã¨åãµã³ãã«ã«ã¸ã£ã³ããã¾ãã â»2é±é以å ã®æ°çè¨äºã¯Newã¢ã¤ã³ã³ãæ´æ°è¨äºã¯Upã¢ã¤ã³ã³ã表示ããã¾ãã æ°åã®å é ãï¼ã§åãã ( Sample2_1.java ) ã æ°åã®å é ã空ç½ã§åãã ( Sample2_2.java ) ã 符å·ä»æ°å¤ ( Sample2_3.java ) ã è² æ°ãæ¬å¼§ä»ãã§è¡¨ç¤ºãã ( Sample2_4.java ) ã æ°å3æ¡ãã¨ã«ã«ã³ãã§åºåã ( Sample2_5.java ) ã æµ®åå°æ°ç¹ã®è¡¨ç¤º ( Sample2_6.java ) ã 16é²æ°ã®è¡¨ç¤º 8é²æ°ã®è¡¨ç¤ºã Javaã§ã¯ãæ°å¤ãæ¥ä»ãæå»ãªã©ã®è¡¨ç¤ºå½¢å¼ãå¶å¾¡ãããã¨ãåºæ¥ã¾ãããã¨ãã°æ°å¤ã®å ´åã表示æ¡æ°ãå¶éããã 表示ããæ°å¤ã®å é ãï¼ã§åããã3æ¡ãã¨ã«ã,ã(ã«
ã¾ãããï¼¯ï¼«ï¼·ï½ ï½ãã¿ãç· åã«ãªãã®ãå¾ ã£ã¦ããããç· åã«ãªããªãã®ã§ããªã³ã¯ãä½æããã«æ¸ãè¾¼ã¿ã å ãã¿ã¯ãJAVAã§ãã¡ã¤ã«ã®è¡æ°ã調ã¹ãã«ã¯ã©ãããããããï¼ã¨ãããããªãã®ã§ã ãããã質åã£ã¦è¯ãããã ãã¯ãããã¡ã¤ã«ãä½è¡ãããã£ã¦çµæ§ç¥ããã人ãå¤ãããã ã ããã¦ãå¤å質åè ãèãã¦ããã®ã¯ããã¡ã¤ã«ã®å±æ§ã¨ãã¦ãã¡ã¤ã«ã«ã¯ãä½è¡ã®ãã¼ã¿ãããã¨ãããããªæ å ±ãä¿æããã¦ããã»ã¨æã£ã¦ããããã ã ããï¼ãã®ããã«äºæ³ãããã¨ï¼ã¯ãããæå³æ£ãããã UNIXé¡ä¼¼ã®ãã¡ã¤ã«ã·ã¹ãã ãï¼æªãæå³ã§ã¯ãªããï¼è延ãã¦ããæ¨ä»ã§ã¯ããã®ãããªé¡æ¨ã¯æ£ãããªãã UNIXé¡ä¼¼ã®ãã¡ã¤ã«ã¯ãåãªããã¤ãï¼ã¨ã¯éããªããï¼ã®ä¸¦ã³ï¼ã¹ããªã¼ã ï¼ã ããã§ãè¡ã§ç®¡çãã¦ãããã¡ã¤ã«ã®æ§é ã«ã¯ãªã£ã¦ãªãï¼ãã¡ãããã®ããã«ãã¡ã¤ã«ã管çããã·ã¹ãã ããã£ã¦ãè¯ãï¼ã ãªã®ã§ããã¡ã¤ã«ãä½è¡
æå®ããå¤ã®å¯¾æ°ãæ±ãã¾ãããlogãã¡ã½ããã¯åºãeã®ãã®ããlog10ãã¡ã½ããã¯åºã10ã®ãã®ããlog1pãã¡ã½ããã¯åºãeã§çæ°ã(1+æå®ããå¤)ã®ãã®ã¨ãªãã¾ãã log public static double log(double a) æå®ããã double å¤ã®èªç¶å¯¾æ°å¤ (åºã¯ e) ãè¿ãã¾ãã ãã©ã¡ã¼ã¿: a - å¤ æ»ãå¤: ln a ã®å¤ãa ã®èªç¶å¯¾æ° èªç¶å¯¾æ°å¤ã¨ã¯ä¸è¨ã®ãããªå¤ã§ããä¸è¨ã®2ã¤ã¯åãå¼ã®æ¸ãæ¹ãå¤ãããã®ã§ããlogãã¡ã½ããã§ã¯ä¸è¨ã®ãxãã®å¤ãæ±ããäºãã§ãã¾ãã log10 public static double log10(double a) double å¤ã® 10 ãåºã¨ãã対æ°ãè¿ãã¾ãã ãã©ã¡ã¼ã¿: a - å¤ æ»ãå¤: a ã® 10 ãåºã¨ããå¯¾æ° 10ãåºã¨ããæ°å¤ã¨ã¯ä¸è¨ã®ãããªå¤ã§ãããlog10ãã¡ã½ã
Java ã§ã¯å ã java.io.* ã«å«ã¾ãã I/O ã©ã¤ãã©ãªããµãã¼ããã¦ãã¾ããããWindows 㨠Linux ç³»ã§æ±ããç°ãªã£ããããã¡ã¤ã«æ¨©éæä½ãã·ã³ããªãã¯ãªã³ã¯æä½ã«å¶ç´ãããã¾ããããããæ¹åãã NIO(New I/O) ã java.nio.* ã§ãµãã¼ãããã¾ãããã¾ããJava SE 7 ãã㯠NIO.2 ã¨å¼ã°ããã©ã¤ãã©ãªã追å ããã大å㯠java.nio.file.* ã«å«ãããã¦ãã¾ããç¾å¨ã§ã¯ I/O(java.io.*) ããã NIO ã NIO.2 (java.nio.*) ã使ç¨ãããã¨ãæ¨å¥¨ããã¦ãã¾ãã å¤ãæ¸ãæ¹ã®å ´åãå ¥åºåã«é¢ããã¯ã©ã¹ã®å¤ãã¯ä½¿ç¨ãçµãã㨠close() ããå¿ è¦ãããã¾ãã try { FileReader in = new FileReader("file.txt"); : in.close();
<H2> ãã¬ã¼ã é¢é£ã®è¦å</H2> <P> ãã®ããã¥ã¡ã³ãã¯ãã¬ã¼ã æ©è½ã使ã£ã¦è¡¨ç¤ºããããã«ä½ããã¦ãã¾ãããã¬ã¼ã ã表示ã§ããªã Web ã¯ã©ã¤ã¢ã³ãã®å ´åã«ãã®ã¡ãã»ã¼ã¸ã表示ããã¾ãã <BR> ãªã³ã¯å <A HREF="overview-summary.html">ãã¬ã¼ã ãªãã®ãã¼ã¸ã§ã³</A>
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}