• Post Reply Bookmark Topic Watch Topic
  • New Topic

Character in 0x01  RSS feed

 
A Kumar
Ranch Hand
Posts: 980
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HI,

How can we display the character 0x01 and does that remain same across softwares/operating systems???


Regards
 
gaurav abbi
Ranch Hand
Posts: 108
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,
are you asking this way.
char c = 0x01;
System.out.println(c);

this works fine, but regarding your second question as far as java is concerned, it should be consistent across different plateforms.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!