ã©ããã¯ã©ã¹ã¯ã対å¿ããããªããã£ãåï¼åºæ¬åï¼ã®å¤ããªãã¸ã§ã¯ãã«ã©ãããã¾ããä¾ãã°ãIntegerã¯ã©ã¹ã¯intåã®å¤ãã©ããããIntegerã¯ã©ã¹ã®ãªãã¸ã§ã¯ãã«ã¯intåã®åä¸ãã£ã¼ã«ããå«ã¾ãã¾ããã©ããã¯ã©ã¹ã¯ãåãå¤æããå種ã®ã¡ã½ãããããã®åã®å¤ãå¦çããã¨ãã«ä¾¿å©ãªã¡ã½ãããæä¾ãã¦ããã¾ãã ã¾ããintåã®å¤ãIntegerãªãã¸ã§ã¯ãã«ã©ãããããã¨ã§å©ç¨ã§ãããIntegerã¯ã©ã¹ã®æä¾ããæ©è½ã®æ´»ç¨ä¾ã示ãã¾ãããã ä¸è¨ã¯ãintåã®å¤ããªãã¸ã§ã¯ãã¨æ¯è¼å¯è½ãªãæ¯è¼ããã§ãªããã°æ¯è¼ä¸å¯ã¨è¿ãã¡ã½ããã§ããIntegerã¯ã©ã¹ã®compareToã¡ã½ããã使ã£ã¦ãã¾ããcompareToã¡ã½ããã¯ããªãã¸ã§ã¯ãã Integer ã®å ´åã¯å¤§å°æ¯è¼ãè¡ããããã§ãªãå ´åã¯ãClassCastException ãã¹ãã¼ããã¾ãã ãªãã¸ã§ã¯ãã«ã®ã¿å¯è½ãª
{{#tags}}- {{label}}
{{/tags}}