What does the operator do?

at Random.java I found the lines:
synchronized protected int next(int bits) {
long nextseed = (seed * multiplier + addend) & mask;
seed = nextseed;
return (int)(nextseed >>> (48 - bits));
I could not figure out what >>> meas, and when I tried to write
this operetor but in the opposite direction it is a compile time error
why?
(it seam that its similar for >> which moves the bits rightward.)

The gods of Sun decree that it is the unsigned right
shift operator.Yup. To explain that further, that means that when you use >>> instead of >>, the sign bit won't be extended. In a signed number, the most significant bit is the sign bit (1=negative, 0=positive). Here's an example:
    int num = -64;
    int rS  = num >> 3;
    int rU  = num >>> 3;
    System.out.println("Number: " + Integer.toBinaryString(num) + " (" + num + ")");
    System.out.println(">> 3:   " + Integer.toBinaryString(rS) + " (" + rS + ")");
    System.out.println(">>> 3:  " + Integer.toBinaryString(rU) + " (" + rU + ")");Jason

Similar Messages

  • What does "The operation could not be completed because an error occurred when creating frame 0 (error -1)." mean, and why does it keep happening?

    So I've been trying to export a video file from Motion 5 (and FCPX), and I keep recieving the message "The operation could not be completed because an error occurred when creating frame 0 (error -1)". I've found the problem has something to do with a video file in the project, Ive tried multiple versions of said file, in multiple formats (.mov, h264, etc.), and I keep getting the same result.  The file was originaly a 640x480 wmv file. Any suggestions?

    I ended up figuring out a solution, but I'll get to that in a sec.
    To answer your question, I converted the .wmv file in a program called Media Converter (available in the App store), and converted it to an h.264 file (then later to a .mov file, and then to an .mpg). I could view the file, and work with it in projects, but any project I tried to output with any version of said file, would result in the afor mentioned message, with the same results in FCPX (and Compressor 4 as well).  I tried multiple frame rates, resolutions, files types, re-converting the file, all with no luck.  My impression from said experiments, and reading other discussions was that it was a corrupt file. 
    Then I got frisky...and a little desperate. I brought the converted file (the .wmv to .mov) into Motion 4... and an export worked first try.  So I exported a pro-res file from Motion 4, and used that file in the already built Motion 5 project, and voila! 
    So, who knows what that means in real terms, as for the whats and whys.

  • What does 'The operation has been cancelled due to restrictions in effect on your computer. Please contact your system administrator' mean?

    I have a problem with my printer, and I'm trying to access the manual through the printer 'Properties' but it won't let me and I just get this message. I also get this message when I'm trying to upload updates to Adobe Acrobat.

    hello drthompson, this doesn't sound like a problem that is related to firefox in particular. please see if running the fixit from http://support.microsoft.com/kb/310049 helps or else please contact a support forum that is specialised in windows support, since this will beyond our capacity here...

  • What does The server responded: "403" to operation CalDAVRemovePropertyQueueableOperation mean?.

    What does
    "The server responded:
    “403”
    to operation CalDAVRemovePropertyQueueableOperation."
    mean?

    It means you are screwed as Apple Support is on vacation..... I have the same problem

  • What does the recovery CD contain - Satellite A100-847

    Hello guys
    I had a few questions about the recovery CD:
    1- What does the recovery CD contain? and the other CD which is called Media something?
    2- Does it have Windows in it? So I can format my PC using it? And from where can i find the product key (windows key)
    3- What if i wanted to use the CD without formatting? etc. installing the softwares?
    Sorry for asking too much but my laptop started disturbing me. Just for knowledge my Laptop is satellite A100-847

    Hello
    I will try to answer your question.
    1 Recovery media contains recovery image. Recovery image is a kind of package that contains operating system, all necessary drivers, Toshiba tools and utilities and some additional software like WinDVD or Norton antivir application. Media something is not known to me. Maybe exact description can help.
    2 Yes it has Windows OS. Yes you can format your notebook using it. You do not need product key. Just install it.
    3 I do not know what you mean. The fact is that HDD will be formatted before you start recovery installation. Be sure all your important data are saved on some external device.
    Bye

  • CSCC - what does the "id" mean and how to get it

    https://apps.cisco.com/CustAdv/ServiceSales/contract/productDetailsIndex.do?method=loadProductDetails&contractId=55565082772&serviceLineNumber=55565082912&lineID=55565086982&instanceID=1483016052&contractNumber=93913779&id=382878711&majorOrMinor=MAJOR&coveredOrUncovered=COVERED&lineSeqNo=45823525&contextID=0.4317186686218467
    Currently I am developing a web client tool to get contract information based on the SN. And I don't find any existing API of CSCC, I had to parse the html instead. But I encountered an issue here as $subject which highlighted in the above link. What does the id number mean and how can I get it ?

    Are you running Firefox in Windows 95 or 98 compatibility mode?
    Mozilla/5.0 ('''Windows NT 4.0'''; rv:35.0) Gecko/20100101 Firefox/35.0
    Firefox won't install on Windows NT 4.0 - so something is changing your useragent and saying that your operating system is like 20 years old.
    Right-click your Firefox desk-top shortcut and select Properties. Then open the Compatibility tab and look at '''Compatibility mode''' - un-check that box if it has a check-mark.

  • HT2729 what does the "other" category consist of when syncing iPhone

    what does the "other" category consist of when syncing iPhone

    "Other" data is real data that you put on your phone by using the built in apps. It is not music, not videos, not pictures and not App Store app data. It is "OTHER" meaning everything that does not fall into these categories. Such as:
    email messages and attachments
    Reminders
    Calendar entries
    Contacts
    Text messages
    iMessages
    MMS messages and attachments
    Genius data
    Music cover art
    Music library database index (but not the music itself)
    Operating system settings
    Safari cache
    bookmarks
    Game Center status
    Music catalog
    You will find posts from people who said they recovered over 3 GB of space by just deleting old text messages.
    If you want Other to be smaller you will have to keep less data on your phone; delete old MMS and texts, delete old email (especially from the "deleted" folder), clear the cache, eliminate cover art.
    Sometimes "Other" includes data corruption. If you suspect this is a possibility try connecting to iTunes and click the Restore iPhone button. First restore from backup; the Other doesn't get any smaller you can Restore again and set up as New, then add your content back separately from your backup.

  • When I block my caller Id what does the other person see.

    My question is when I block my number/caller id on my iphone what does the reciever of the call see? Restricted/blocked or could it possibly be a bunch of numbers?? Like 13 digits. would it depend on the phone the other person has like if it is an old flip phone?
    (when scrolling down I dont know the operating system) so ignore my answer to that if it even shows??

    Depends on the carrier you use and the recipient's device. More than likely Blocked.

  • What does the folder with a question mark mean?

    When I power on my black Macbook a white screen appears with a folder with a question mark flashing. what does the folder with a question mark mean? I just replaced the hard drive. When I put the install disc in the cd drive makes a very loud whirring noise then eventually the disc pops back out. Any ideas?

    You will need to reinstall:
    Reinstall OS X without erasing the drive
    Do the following:
    1. Repair the Hard Drive and Permissions
    Boot from your Snow Leopard Installer disc. After the installer loads select your language and click on the Continue button. When the menu bar appears select Disk Utility from the Utilities menu. After DU loads select your hard drive entry (mfgr.'s ID and drive size) from the the left side list.  In the DU status area you will see an entry for the S.M.A.R.T. status of the hard drive.  If it does not say "Verified" then the hard drive is failing or failed. (SMART status is not reported on external Firewire or USB drives.) If the drive is "Verified" then select your OS X volume from the list on the left (sub-entry below the drive entry,) click on the First Aid tab, then click on the Repair Disk button. If DU reports any errors that have been fixed, then re-run Repair Disk until no errors are reported. If no errors are reported click on the Repair Permissions button. Wait until the operation completes, then quit DU and return to the installer.
    If DU reports errors it cannot fix, then you will need Disk Warrior and/or Tech Tool Pro to repair the drive. If you don't have either of them or if neither of them can fix the drive, then you will need to reformat the drive and reinstall OS X.
    2. Reinstall Snow Leopard
    If the drive is OK then quit DU and return to the installer.  Proceed with reinstalling OS X.  Note that the Snow Leopard installer will not erase your drive or disturb your files.  After installing a fresh copy of OS X the installer will move your Home folder, third-party applications, support items, and network preferences into the newly installed system.
    Download and install the Combo Updater for the version you prefer from support.apple.com/downloads/.

  • What does "The System bootstrapper has crashed: Bus error" mean ?

    What does "The System bootstrapper has crashed: Bus error" mean ?

    Was this an upgrade?
    You could repair disk and permissions,  but I suspect a corrupt OS X.  I would reinstall the operating system.
    COmmand R on reboot if your Mac is newer.

  • What does the bios look like on a G61-336NR? Product: VU181UA#ABA

    What does the bios look like on a G61-336NR? Product: VU181UA#ABA and is it removable?

    Hi Juicy9097,
    Thank you for visiting the HP Support Forums and Welcome. I have read your thread on your HP G61-336NR Notebook and BIOS concerns. The BIOS is responsible for loading the operating system. Without it your computer will not work as it checks the hardware and then loads the operating system. Here is a link From Wikipedia, the free encyclopedia explaining the BIOS.
    Hope this explains things.
    Thanks.
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos, Thumbs Up" on the bottom to say “Thanks” for helping!

  • What does the startup Disk do ?

    i'm a new mac user, and i still don't know what all the option on the mac does, one of those is the startup disk
    i really like to know what does the startup disk do .
    thank you

    The hard drive would need to be formatted properly and have a valid operating system on it.
    For example, if your computer shipped with OS X 10.6 (Snow Leopard), the external hard drive would have to be formatted correctly and have Snow Leopard installed on it. Once the installation is completed, the drive should be bootable.
    ~Lyssa

  • I was playing with my ipad settings (it's an older model) and noted in the advanced settings of Safari there was a place to view website databases.  When I clicked on this I saw websites.  How do these get there and what does the space amount mean?

    I was playing with my ipad settings and noted in he advanced settings of Safari there was a place to view "website databases".  When I selected this I saw a multitude of websites.
    Can anyone tell me how these get there?  Can a website be posted even if it was never went to?  What does the space amount mean?  For example, 1.5 kb...is this quite a bit?  Would it indicate someone has gone to a site multiple times?
    I share my ipad with my teenage daughter and I'm trying to find out if she's lying to me.  Obviously she's swearing that she has "no idea" how these got there and I'm trying to keep her safe (she's only 14).
    Thanks everyone.
    Concerned Mom

    Think of your PC and the 'temporary internet folder' where it keeps cached copies of web pages or elements off a web page for 'quicker display the next time you visit'. That's pretty much what that folder is. 1.5K is tiny. Probably just a basic page with some text on it. (you might be confusing 1.5K with 1.5 megabyte....megabyte is large...it's roughly 1000 kilobytes, so the 1.5K is a tiny file)
    As far as I know, the only way info gets into that folder is if the browser has been to that site.
    if you have a concern there are browsers out there, McGruff is one i've seen recommended, that allow some degree of parental control and supervision. That or you could passcode lock the iPad or enable the restrictions to turn off some parts of the device to have some control.

  • What does the open file dialog do 'under the hood' and is there a way to simulate it

    What does the open file dialog do 'under the hood' and is there a way to simulate it?
    I have a bug in my code (that I've posted about before, here) which I can't fix at the moment, but I do have a workaround.
    Briefly, the bug:
    I call a dll from a function node, to initialise and run a spectrometer. If I start up the PC, LabVIEW and run my vi the code runs without complaint, the first call to the dll to initialise the spectrometer doesn;t return an error but the spectrometer is not detected either.
    I've tried various solutions, see the link above, and none work
    The workaround:
    If, at any time before running the code containing the function node I open an 'open file' dialog window, select the dll and click ok/hit enter then everything is fine. When I run the main code the spectrometer is detected.
    I use an express vi to open the file dialog, I specify the start path and file name as constant inputs and just click ok/hit return when the dialog pops up. I don't do anything with the dialog outputs. In fact the vi that contains the open file dialog can be run before the project containing the bug is even open.
    I have to do this everytime I turn the PC on.
    So, either
    1) Can somewone suggest a fix for the original bug?
    2) What is the easiest way to simulate the enter keypress when the open file dialog pops up
    or
    3) Can someone tell me what the open file dialog does under the hood that somehow causes the dll to work and can it be simulated in straight LabVIEW
    I suspect that the dll itself is dodgy ( I have in the past talked to the supplier but not got very far, and I will try again but I would like a quick, temporary solution too). I'm guessing that the file dialog is making some kind of check on the file, and possibly registering its presence with the OS (winXP). I tried using the file/folder exists vi to see if checking the file like that worked but no luck.
    Any help greatly appreciated.
    Dave

    Hi David
    I am very conscious about thread hijacking but this sounded like my issue so I hope you dont mind me asking about your issue. I am hoping that you have a spectrometer from the same vendor as me and its not just me seeing an Error 1097 issue. My spectrometer is from a company called Stellarnet.
    So far I have unable to get it to work with other VIs. There is one condition where I can get it to work but its no good for me.
    Case 1
    I open the VI in a fresh labview environment with no other VIs in memory. The code runs with no issue.
    Case 2
    Labview is not opened. I double click the spectrometer VI in windows explorer.  The VI opens but it fails to run resulting in Error 1097. Personally, I dont see the difference between this and Case 1 above and yet it fails.
    Case 3
    If I already have other VI's in memory and try to load the spectrometer VI and run it fails with Error 1097. This case is the one that most important to me. I have a test executive that will load test VIs dynamically and I can't get this to work. Same problem Error 1097.
    I wanted to share what I have seen with you and to let you know that maybe somebody else has the same issue. I am convinced its the DLL but the vendor dis-agreed saying it was LabVIEW. I couldn't convince him otherwise.
    Thanks in advance
    David

  • What does the ipod touch 5 come with

    What does the Ipod Touch 5 come with? (standard)

    Four calling birds, three french hens, two turtle doves and partridge in a pear tree. ;-)
    Basic troubleshooting steps  
    17" 2.2GHz i7 Quad-Core MacBook Pro  8G RAM  750G HD + OCZ Vertex 3 SSD Boot HD 
    Got problems with your Apple iDevice-like iPhone, iPad or iPod touch? Try Troubleshooting 101
     In Memory of Steve Jobs 

Maybe you are looking for

  • Gnome 3 going into fallback mode

    "I just installed Arch as a virtual desktop using VMware Workstation. I have installed the drivers mentioned in the Wiki and the computer running it has excellent specs and shouldn't have a problem. Originally at the start of GDM there was an error m

  • HT1657 It says I have rentals that have not expired but I don't have any rentals. What does that mean?

    It says I have rentals that have not expired but I don't have any rentals. What does that mean?

  • [svn:fx-3.x] 10416: Allow null in object properties when sorting.

    Revision: 10416 Author:   [email protected] Date:     2009-09-18 15:30:02 -0700 (Fri, 18 Sep 2009) Log Message: Allow null in object properties when sorting. QE Notes: None Doc Notes: None Bugs: SDK-13585 Reviewer: Corey API Change: No Is noteworthy

  • Ack!  need help with a CSS layout

    I've been struggling to layout a Dreamweaver template that does the following: You can see the files here: http://northfloridahealthcorps.org/Oct5/index.html First, I know there's way to much CSS going on here. I'm newer to CSS and there's a lot of c

  • Strategy based inspection for bridges

    Hi Guys, I have a scenario to map for Bridges inspection on my current project The scenario is... We have a bridge 'A' that undergoes two levels of inspection Level 1 and Level 2. The frequency for 'L1' is Annual and for L2 every 5 years. L1 is a vis