누군가 나를 아래 프로그램의 출력을 알려 방법 서명 바이트하면 두 숫자를 XOR 때출력 : 부호있는 바이트 조작
public class OppositeSigns
{
public static void main(String[] args)
{
// TODO Auto-generated method stub
byte a =-2;
byte b= -1;
opp(a,b);
}
static void opp(byte x,byte y)
{
byte z;
z= (byte)(x^y);
System.out.println(z);
}
}
왜 시도하지 않으시겠습니까? – Henry