Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

any tutorials or notes for shifts?

 
sonir shah
Ranch Hand
Posts: 435
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello guys
I am still not able to understand the concepts of shift operators
Is there any notes or tutorials which explain this concept in a better way??(just like it explains a begineer)
please help?
 
Corey McGlone
Ranch Hand
Posts: 3271
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by sonir shah:
hello guys
I am still not able to understand the concepts of shift operators
Is there any notes or tutorials which explain this concept in a better way??(just like it explains a begineer)
please help?

You can check out this story from the campfire section which may be helpful to get you started. I'd try a few problems and, if you're finding that you're having trouble getting the right answer or explaining why, post it here and I'm sure there are tons of bit-shifting gurus here that can explain it to you in pseudo-plain english.
Corey
 
Vikrama Sanjeeva
Ranch Hand
Posts: 760
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
U can have this Sun Tutorial and u'll get much help not only on operators but on whole Java.Specially AWT,IO & Event Handling.
Bye.
Viki.
 
sonir shah
Ranch Hand
Posts: 435
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi.
I tried studying the CampFire at the Javaranch regarding Bits and Shift operators.
But I am still not cleared my concepts very efficiently.I dont know why?
Can any one suggest me what am I supposed to do??
Sonir
 
Jim Petersen
Ranch Hand
Posts: 241
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
I found Marcus Green's tutorial on shifting pretty good. www.jchq.net
Chances are that you'll get 1-2 questions in the exam exclusively on shifting... max so don't loose too much sleep on the subject! One tip I can think of is to start thinking in groups of bits eg 8 groups of 4 1/0s for integers, 2 groups of 4 for bytes etc do the decimal-binary conversion, and write down the problem in these groupings.
Also you may want to do a search through this board for specific questions on bit-shifting asit comes up regularly
[ January 11, 2002: Message edited by: Jim Petersen ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic