javaã§ã¯ã以ä¸ã®ããã« int a = 0; int b = ++a; System.out.print(a); // 1 ã表示ããã System.out.print(b); // bã1 ++ã¨ããã¤ã³ã¯ãªã¡ã³ãããããã®æ¼ç®åãããã¾ãã ãããscalaã®å ´å var a = 0 // a ++ ããã¯ãã¡ val b = a += 1 print(a) // 1 ã表示ããã print(b) // b ã¯Unit ã¨ããããã«ããªãã¨ããã¾ããã ãã®éãã«ã¤ãã¦ã®ããªã¯ã(ã»Ïã»)ã ãããã¡ããã¨è§£èª¬ãããã¨ããã¨ãããªãããããããã§ããããããªãã®çç±ãããã¾ãã ãããç´°ããã¨ããã ãã©ãJavaã¨ã®éãã§åå¿è ãæ¸æããããã¨ããã ã¨æãã¾ãã Javaã®è¨èªä»æ§æ¸ã®15.14 ã 15.18ãããã ã¨ãããã¾ããã++ã+=ã--ã-=ããªã©ã¯ããã¹ã¦Ope
{{#tags}}- {{label}}
{{/tags}}