Last active
December 11, 2015 04:18
-
-
Save toshinoritakata/4544211 to your computer and use it in GitHub Desktop.
signedなjavaのbyteをintにキャストする方法 http://javafaq.jp/S007.html 参考
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
byte b = 200; | |
int i = b & 0xFF; | |
System.out.println( i ); // 200 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment