使ã£ã¦ã¿ã åãã¦ã®ã¢ããªãä½æãããã¨ããå§ãã¦ã¿ã¾ãããããã¬ã¼ãã³ã° ã³ã¼ã¹ãæ´»ç¨ãã¦ç解ãæ·±ããã»ãããèªèº«ã§ã¢ããªéçºãç¿å¾ãããã¨ãã§ãã¾ãã
Edit Page åºæ¬çãªæ§æ ããã±ã¼ã¸ã®å®ç¾© ããã±ã¼ã¸ã®è¨è¿°ã¯ãã½ã¼ã¹ãã¡ã¤ã«ã®å é ã«ç½®ããªããã°ãªãã¾ããã package my.demo import java.util.* // ... ãã£ã¬ã¯ããªã¨ããã±ã¼ã¸ã¨ä¸è´ããå¿ è¦ã¯ããã¾ãããã½ã¼ã¹ãã¡ã¤ã«ã¯ããã¡ã¤ã«ã·ã¹ãã å ã®ä»»æã®å ´æã«é ç½®ãããã¨ãã§ãã¾ãã ããã±ã¼ã¸ãåç §ãã¦ãã ããã é¢æ°ã®å®ç¾© 2ã¤ã®Intåã®å¼æ°ãæã¡ãIntåãæ»ãå¤ã¨ããé¢æ°ï¼ fun sum(a: Int, b: Int): Int { return a + b } å¼æ¬ä½ã¨æ¨è«ãããæ»ãå¤ã®åãæã¤é¢æ°ï¼ fun sum(a: Int, b: Int) = a + b æå³ã®ããå¤ãè¿ããªãé¢æ°ï¼ fun printSum(a: Int, b: Int): Unit { print(a + b) } Unitåã®æ»ãå¤ã¯çç¥ã§ãã¾ãï¼
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}