?
Solved

bitwise operations

Posted on 2004-11-15
3
Medium Priority
?
259 Views
Last Modified: 2010-03-31
Hi,

I'm not very good at bitwise operations. I asked a question and a few guys helped me on it but I suspect they may be asleep right now because it was midnight EST when I asked my original question and got the answers.

If anyone could look at the question and put in their 2 cents it would be very helpful for me. Thanks!

http://www.experts-exchange.com/Programming/Programming_Languages/Java/Q_21206687.html
0
Comment
Question by:ycomp
  • 2
3 Comments
 
LVL 13

Accepted Solution

by:
petmagdy earned 2000 total points
ID: 12588038
here we go:

      protected static int getKeyRow(long aKey) {
        return (int) (aKey >> 32);
      }
     
      protected static int getKeyCol(long aKey) {
        return (int) aKey ;
      }
0
 

Author Comment

by:ycomp
ID: 12588114
cool thanks! it works :)
0
 
LVL 13

Expert Comment

by:petmagdy
ID: 12588125
welcome :-)
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

By the end of 1980s, object oriented programming using languages like C++, Simula69 and ObjectPascal gained momentum. It looked like programmers finally found the perfect language. C++ successfully combined the object oriented principles of Simula w…
Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
Suggested Courses
Course of the Month13 days, 20 hours left to enroll

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question