Logo 
Search:

Java Answers

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds
  Question Asked By: Fern Sanchez   on Jul 31 In Java Category.

  
Question Answered By: Devrim Yilmaz   on Jul 31

char c='a';

byte bytevalue=(byte)c;

char charvalue=(char)bytevalue;

byte mask1=1; //0000 0001
byte mask2=2; //0000 0010

byte firstdigit= mask1&bytevalue;
byte seconddigit= mask2&bytevalue;

so what was the problem?

Share: