課程
/后端開(kāi)發(fā)
/Java
/Java入門(mén)第一季(IDEA工具)升級(jí)版
模等于(%=)是什么意思????
2016-11-18
源自:Java入門(mén)第一季(IDEA工具)升級(jí)版 3-3
正在回答
three 每次都在上一次的基礎(chǔ)上賦值。
?three%=one; ? ------》three=three%one
慕田峪3939182 提問(wèn)者
public class HelloWorld{
? ? public static void main(String[] args) {
? ?int one = 10 ;
? ? ? ? int two = 20 ;
? ? ? ? int three = 0 ;
? ? ? ? three=one+two;
? ? ? ? System.out.println("three=one+two ==>"+three);
? ? ? ? three+=one;
? ? ? ? System.out.println("three+=one ==>"+three);
? ? ? ? three-=one;
? ? ? ? System.out.println("three-=one ==>"+three);?
? ? ? ? three*=one;
? ? ? ? System.out.println("three*=one ==>"+three);
? ? ? ? three/=one;
? ? ? ? System.out.println("three/=one ==>"+three);
? ? ? ? three%=one;
? ? ? ? System.out.println("three/%=one ==>"+three);
? ? ? ??
這個(gè)中,three ?是不是每次都在上一次的基礎(chǔ)上賦值??
?three%=one; ? ?這個(gè)賦值是什么意思沒(méi)搞明白
舉報(bào)
0基礎(chǔ)萌新入門(mén)第一課,從Java環(huán)境搭建、工具使用、基礎(chǔ)語(yǔ)法開(kāi)始
2 回答賦值運(yùn)算符完全沒(méi)明白
1 回答賦值運(yùn)算符算出的值不明白
1 回答賦值運(yùn)算符 -=
2 回答賦值運(yùn)算符
1 回答賦值運(yùn)算符
Copyright ? 2025 imooc.com All Rights Reserved | 京ICP備12003892號(hào)-11 京公網(wǎng)安備11010802030151號(hào)
購(gòu)課補(bǔ)貼聯(lián)系客服咨詢優(yōu)惠詳情
慕課網(wǎng)APP您的移動(dòng)學(xué)習(xí)伙伴
掃描二維碼關(guān)注慕課網(wǎng)微信公眾號(hào)
2016-11-18
three 每次都在上一次的基礎(chǔ)上賦值。
?three%=one; ? ------》three=three%one
2016-11-18
public class HelloWorld{
? ? public static void main(String[] args) {
? ?int one = 10 ;
? ? ? ? int two = 20 ;
? ? ? ? int three = 0 ;
? ? ? ? three=one+two;
? ? ? ? System.out.println("three=one+two ==>"+three);
? ? ? ? three+=one;
? ? ? ? System.out.println("three+=one ==>"+three);
? ? ? ? three-=one;
? ? ? ? System.out.println("three-=one ==>"+three);?
? ? ? ? three*=one;
? ? ? ? System.out.println("three*=one ==>"+three);
? ? ? ? three/=one;
? ? ? ? System.out.println("three/=one ==>"+three);
? ? ? ? three%=one;
? ? ? ? System.out.println("three/%=one ==>"+three);
? ? ? ??
這個(gè)中,three ?是不是每次都在上一次的基礎(chǔ)上賦值??
?three%=one; ? ?這個(gè)賦值是什么意思沒(méi)搞明白