assert ã¨ã¯ ããã§ã¯ JDK 1.4 ã§å°å ¥ãããã¢ãµã¼ã·ã§ã³ (assertion) ã®ä½¿ãæ¹ã«ã¤ãã¦èª¬æãã¾ãã ã¢ãµã¼ã·ã§ã³ã¯ãããã°ãæ¯æ´ããããã®æ©è½ã§ããassert ã¹ãã¼ãã¡ã³ãã使ã£ã¦ãè¨è¿°ãã¾ãã assert ã«ã¯å¸¸ã«ãç (true) ã¨ãªãã¨æ³å®ãã¦ããå¼ããæ¸ããã¨ã«ãã£ã¦éçºè ãä½ãæ³å®ãã¦ãããè¨è¿°ã§ãã¾ãã ãããã©ãããæå³ããå ·ä½ä¾ã§ç¤ºãã¾ãã assert ã®ä½¿ãæ¹ assert ã«ç¶ãã¦ã常ã«ç (true) ã§ããã¨èãã¦ããå¼ã¨ false ã¨è©ä¾¡ãããå ´åã«è¡¨ç¤ºããã¡ãã»ã¼ã¸ããã³ãã³ : ã§åºåã£ã¦è¨è¿°ãã¾ãã assert ã常㫠true ã¨ãªãã¨èãã¦ããå¼ã: ãã¡ãã»ã¼ã¸ã; å ·ä½ä¾ã§ã¿ã¦ã¿ã¾ãããã次ã®ä¾ãã¿ã¦ãã ããã public class TestApp { public static void main(Str
{{#tags}}- {{label}}
{{/tags}}