The Value of 0xFF Number and Its Uses With & Operation in Java Article by Abdallah Sawan

This commit is contained in:
AbdallahSawan 2020-10-22 14:00:10 +03:00
parent 506953bb56
commit 06419d4deb
1 changed files with 1 additions and 1 deletions

View File

@ -16,7 +16,7 @@ public class Number0xffUnitTest {
public void test0xFFAssignedToByte() {
byte y = (byte) 0xff;
int expectedValue = -1;
assertEquals(x, expectedValue);
assertEquals(y, expectedValue);
}
@Test