Anitha Ramanujam

Greenhorn
+ Follow
since May 10, 2007
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Anitha Ramanujam

hi john.thanks for the response.but my doubt is (char) (-15 & 0x0000ffff)
how doues this value in char be oxfff0
public class TestByte {

public static void main(String[] args) {
byte u[] = new byte[1999];
char pc ='?';
char t ='@';
char c = 0xfff1;
setPageControl((char) (-15 & 0x0000ffff));
setPageControl((char) (-16 & 0x0000ffff));
}

static void setPageControl(char pc)
{

if(pc == 0xfff0)
{
System.out.println("inside 0xfff0 question mark");
}
if(pc == 0xfff1)
{
System.out.println("inside 0xfff1 question mark");
}

}
}

can anybody help me in understanding this?if i print the character it prints '?' in both the SOPS.