代碼編程 十六進(jìn)制轉(zhuǎn)換二進(jìn)制的JAVA代碼怎么寫?
十六進(jìn)制轉(zhuǎn)換二進(jìn)制的JAVA代碼怎么寫?字符串str=“12C2”int i=整數(shù).parseInt(str,16)字符串str2=整數(shù).toBinaryString(i) STR是十六進(jìn)制數(shù)的字符串
十六進(jìn)制轉(zhuǎn)換二進(jìn)制的JAVA代碼怎么寫?
字符串str=“12C2”int i=整數(shù).parseInt(str,16)字符串str2=整數(shù).toBinaryString(i) STR是十六進(jìn)制數(shù)的字符串,STR2是二進(jìn)制數(shù)的字符串