This week's book giveaway is in the Cloud/Virtualizaton forum.
We're giving away four copies of Mesos in Action and have Roger Ignazio on-line!
See this thread for details.
Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Binary

 
zniter goh
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi
i use datainputstream to read a file and how can i look at the binary of the byte that i have read.
thx...
 
Shivaji Marathe
Ranch Hand
Posts: 203
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can use the static toBinaryString method of the integer class.
You can also convert the byte on your own using the & operator ;-) and string manipulation
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic