I'm totally lost with this one........

i is an int with the value 778899
return new Color((i >> 16) & 0xFF, (i >> 8) & 0xFF, i & 0xFF);
When I run this through a debugger and step into this line, the 3 parameters in the constructor of the Color object contains the values 11, 226 and 147.
I don't understand what the code above is actually doing hence the reason why I don't understand how the color object gets these values.
Can someone explain this one. I've had a look about but no luck so far.

A color is expressed by a 24bit RGB value, which describes the Red, Green and Blue component. Each component is 1 byte (8 bit) large. So you can express a color as an hexidecimal number in the form 0xRRGGBB.
Take your decimal number 778899. In hexadecimal, this is 0x0BE293. So, I'll do it step by step
1) extract Red component: 0x0BE293 >> 16 = 0x00000B & 0xFF = 0x0B = 11 decimal
2) extract Green component: 0x0BE293 >> 8 = 0x000BE2 & 0xFF = 0xE2 = 226 decimal
3) extract Blue component: 0x0BE293 & 0xFF = 0x93 = 147 decimal
These are the three values that are passed to the Color constructor.
Hope it helps,
Pierre

Similar Messages

  • I am totally lost with this instalation with Adobe Photoshop, can anyone HELP ME ????

    I am Totally Lost with the installing of my Adobe Photoshop CS6 ---- I have downloaded the 3 files ( directions & 2 installation setup programs)  NOW WHAT?????

    Cailinb1420473 do you receive any specific error messages when trying to install Creative Suite 6?  For information on how to install Creative Suite 6 please see Install Adobe Creative Suite 6.  If you have any questions regarding the document you are welcome to update this discussion.

  • I am truly lost on this one:

    I am truly lost on this one: While re-organizing iTunes (New iMac) I began by going into users/my name/music/itunes/itunes media/music and put about 50+- random out of order songs into the correct folders… did not see any changes anywhere after reopening iTunes and selecting various priority choices.  After exploring other instructions I turned to the iTunes- File- Get Info and organized everything there to one category.  Everything appeared corrected on iTunes, however when I returned to the user path noted above to check, everything I just updated is completely missing, nowhere to be found (but still plays).  Like I said, I am lost on this one… Where on earth did everything go?  (Yes, I did check pretty much everywhere.)  &  What do I do to get it all consistent and organized correctly?  I did look around for more answers, but nothing really related to this.  l appretiate any answers or comments. (Except "Dumba__".  Eventhough I attach it to myself sometimes when I get a simple answer.)  Thanks

    I use an older iTunes so I don't know if they have changed the settings (I think not).  In advanced settings I unselect "Copy to media folder" and "organize media".  I have done this since day one with iTunes so I don't know what happens if you select just one or the other.  I have my media on 3 different volumes on my computer so I have always had both turned off.
    Note, there are certain disadvantages to doing this that apply in specific scenarios, so  realize that you are going to have to learn how iTunes works with media files and library files because now some of the job it does will be upon you. 
    If you download from the iTunes Store it will still put the files in the iTunes structure, though you can move them about.  I find iTunes is pretty good at following where I drag files in Finder though it cannot follow a move to a different drive unless you move the whole library.

  • Hi..I have an AirPort Extreme base connected to my DSL Modem and has been working fine. But I recently bought another DSL modem along with the latest Airport Express. With this one however I can't get it to connect to the Internet. Any suggestions?

    Hi..I have an AirPort Extreme base connected to my DSL Modem and has been working fine. But I recently bought another DSL modem along with the latest Airport Express. With this one however I can't get it to connect to the Internet. The light on the Express is flashing green though. Does it mean I have to re-set the settings on Airport Utility? I.e. the old settings haven't been cleared yet. Any suggestions?

    Let's see if I can get this straight.
    You have an Airport Extreme base station that is set to "Create a wireless network" and you have the box checked for "allow this network to be extended"....
    Then you have an Airport Express that is set to "Extend a wireless network" which you selected the name of your network in the box...
    Correct?
    See this Apple document:
    http://support.apple.com/kb/HT4259?viewlocale=en_US&locale=en_US
    The wireless unit on the right of the diagram can be either of the newer Apple base stations.
    Extreme, Express, Time Capsule

  • AV works for me, except with this ONE friend... same thing for him.

    I can AV chat with everyone on my buddy list (I use AIM on a Macbook Pro), but when I try to AV chat with this one friend (who has the exact same laptop as I do), it fails to connect. He can also AV chat with everyone else on his buddy list... I've searched the net and found other people with this same problem but no solutions yet. Any ideas?
    Thanks.

    It may be the way the individual Modems or routers that are involved do NAT.
    NAT (Network Address Translation) is a global term for various ways of achien=ving the same thing.
    Some devices don't "Play Nicely" together.
    One option is to use UPnP if the devices have it to open the ports
    http://www.ralphjohns.co.uk/page15.html#CertainBuddy
    8:49 PM Thursday; August 14, 2008

  • I have problem with my iphone 4s my battery is not keeping charge. how can I get help with this one. it is less than a year that I purchased this cell.

    I have problem with my iphone 4s my battery is not keeping charge. how can I get help with this one? it is less than a year that I purchased this cell.

    I would like to know the answer to that one.  I realized this was happening just after upgradeing my iOS to 6.  Then when I looked up my purchase date, I was about 5 days past my one year warranty.  So I'm dead in the water.  Apple will replace the battery, but it will be about $80+.  I took it to the Apple store, and they checked a bunch of stuff, but said that it seemed ok.  I'm debating getting a battery for a more reasonable price off of ebay.  But if it's the iOS thats draining the battery, then I'm not going to be able to help it.  I wish I knew a better way to tell if its the battery, the phone, or the iOS.

  • "File ... already exists, but it is inconsistent with this one." error

    I've previously used ALPC to profile a Zuiko 12-60 on a E520 and I had no trouble at all. I had 33 different sets of 9 pictures each, and they all merged nicely into one consistent profile. The profile worked perfectly and corrected lens distortion better than any other software I've used. Now I'm trying to profile my Nikkor 10-24 on a Nikon D7000, but as soon as I try to append the 2nd set to the 1st one (same focal length and focus distance, different aperture), I get this message: "File <filename> already exists, but it is inconsistent with this one. Please select a different location or use a different file name.".
    My brother has been having this same issue and he's also using a Nikon D7000, but with a Sigma 17-70 2.8-4.0. Any ideas why this is happening? Some sort of D7000 raw conversion issue, maybe? I used ACR to convert NEF to DNG. The first profile is created and works well, though apparently not very accurate.
    I tested the one profile that is saved, at 10mm and f/3.5, and it's not very good. Distortion is clearly over-corrected. The one difference between the profile I did for the Olympus and this one is that I refocused after every shot for this one (since the wide angle really throws corner focus off when you reframe it). Could this be it? If not, what else?
    I'm using an A4 13x21 chart. It's enough to fill the frame with 9 shots at minimum focus distance.

    I am having the same problem with my d7000.  This happens regardless of software used to convert NEF files, so if I had to guess at why this is happening I would say that the d7000 maybe has a different format for its makernotes, which is where the lens information is stored, and the lens profile creator doesn't read it.
    Here's what happened when I tried to profile my 50mm f1.8 nikkor: I took 9 pictures at f1.8 and nine at f2.8. The profiling worked fine on both. So I ran it first on the f1.8 set, and saved it. Did the same for the f2.8 set and tried to save it, but it wouldn't allow me to append the file to the existing one, giving me the "inconsistent" error discussed here. I then save the second profile separately.
    I opened both on windows notepad, and this is the lensID inconsistency already discussed here:
    The profile I did with the f1.8 set had this line in it:
    <stCamera:LensID>76</stCamera:LensID>
    And the profile I did with the f2.8 set had this line:
    <stCamera:LensID>179</stCamera:LensID>

  • HT4847 Why do I get the answer on trying to open this application, limit reached,want to use skygo on this device visit manage devices to replace a registered device with this one. How do I do that

    Why do I get the answer on trying to open the application skygo, limit reached, want to use skygo on this device visit manage devices to replace a registered device with this one. How do I do that. ?

    Please see http://help.sky.com/tv/sky-go/register-devices-on-sky-go . Note that if you have in the past already removed one device you will have to wait for a month to elapse before you can remove another.

  • If the data network is not available for some time, to get it again we need to restart the phone instead it is not finding the data network instantly. why cant the iphone searches data net work offten if not available. i am totally disappointed with this!

    If the data network is not available for some time, to get it again we need to restart the phone instead it is not finding the data network instantly. why cant the iphone searches data net work offten if not available. i am totally disappointed with this!

    Still it could not find the data network.it searches for voice network instantly and works too. but even full voice network available, there is no data network.when i restart the phone it could find data network.
    Already i reset network settings for two times.

  • Not again...help with this one....

    dunno what happened but after updating to voodoo...the printer stoped printing...i try to print a test and all it does its start the printer and then its stops the job..my printer is a brother 2030...what went wrong? in 0.7.2 all worked just fine...help me with this one cause i really need it working...

    Lone_Wolf wrote:
    Try removing and adding your printer again.
    I remember seeing something about a change in cups regarding usb printers a while ago.
    ive donne that..ive even reomved all the files from cups..cause the models installed didnt deleted with pacman -R..so the problm remains..cups log....
    I [01/Jan/2007:14:37:36 -0100] Scheduler shutting down normally.
    I [01/Jan/2007:14:37:36 -0100] Saving remote.cache...
    I [01/Jan/2007:14:37:36 -0100] Saving job cache file "/var/cache/cups/job.cache"...
    I [01/Jan/2007:14:38:52 -0100] Listening to ::1:631 (IPv6)
    I [01/Jan/2007:14:38:52 -0100] Listening to 127.0.0.1:631 (IPv4)
    I [01/Jan/2007:14:38:52 -0100] Loaded configuration file "/etc/cups/cupsd.conf"
    I [01/Jan/2007:14:38:52 -0100] Using default TempDir of /var/spool/cups/tmp...
    I [01/Jan/2007:14:38:52 -0100] Cleaning out old temporary files in "/var/spool/cups/tmp"...
    I [01/Jan/2007:14:38:52 -0100] Configured for up to 100 clients.
    I [01/Jan/2007:14:38:52 -0100] Allowing up to 100 client connections per host.
    I [01/Jan/2007:14:38:52 -0100] Using policy "default" as the default!
    I [01/Jan/2007:14:38:52 -0100] Full reload is required.
    I [01/Jan/2007:14:38:52 -0100] Loaded MIME database from '/etc/cups': 34 types, 39 filters...
    I [01/Jan/2007:14:38:52 -0100] Loading job cache file "/var/cache/cups/job.cache"...
    I [01/Jan/2007:14:38:52 -0100] Full reload complete.
    I [01/Jan/2007:14:38:52 -0100] Listening to ::1:631 on fd 2...
    I [01/Jan/2007:14:38:52 -0100] Listening to 127.0.0.1:631 on fd 3...
    E [01/Jan/2007:14:38:52 -0100] Unable to set ACLs on root certificate "/var/run/cups/certs/0" - Operation not supported
    I [01/Jan/2007:14:42:44 -0100] Adding start banner page "none" to job 12.
    I [01/Jan/2007:14:42:44 -0100] Adding end banner page "none" to job 12.
    I [01/Jan/2007:14:42:45 -0100] Job 12 queued on "HL-2060" by "sickhate".
    I [01/Jan/2007:14:42:45 -0100] Started filter /usr/lib/cups/filter/pstops (PID 4790) for job 12.
    I [01/Jan/2007:14:42:45 -0100] Started filter /usr/lib/cups/filter/foomatic-rip (PID 4791) for job 12.
    I [01/Jan/2007:14:42:45 -0100] Started backend /usr/lib/cups/backend/usb (PID 4792) for job 12.
    E [01/Jan/2007:14:42:46 -0100] [Job 12] /undefined in ESPwl
    E [01/Jan/2007:14:42:46 -0100] PID 4791 (/usr/lib/cups/filter/foomatic-rip) stopped with status 3!
    I [01/Jan/2007:14:42:46 -0100] Hint: Try setting the LogLevel to "debug" to find out more.
    I [01/Jan/2007:14:45:10 -0100] Job 12 was canceled by "sickhate".
    I [01/Jan/2007:14:50:23 -0100] Started "/usr/lib/cups/daemon/cups-driverd" (pid=4981)
    I [01/Jan/2007:14:50:23 -0100] Started "/usr/lib/cups/daemon/cups-deviced" (pid=4982)
    E [01/Jan/2007:14:50:24 -0100] [CGI] Unable to send 46 bytes to 10.0.0.255: Operation not permitted
    E [01/Jan/2007:14:50:24 -0100] [CGI] Unable to send 46 bytes to 172.16.45.255: Operation not permitted
    E [01/Jan/2007:14:50:24 -0100] [CGI] Unable to send 46 bytes to 172.16.28.255: Operation not permitted
    I [01/Jan/2007:14:50:29 -0100] Adding start banner page "none" to job 13.
    I [01/Jan/2007:14:50:29 -0100] Adding end banner page "none" to job 13.
    I [01/Jan/2007:14:50:29 -0100] Job 13 queued on "HL-2060" by "root".
    I [01/Jan/2007:14:50:29 -0100] Started filter /usr/lib/cups/filter/pstops (PID 4997) for job 13.
    I [01/Jan/2007:14:50:29 -0100] Started filter /usr/lib/cups/filter/foomatic-rip (PID 4998) for job 13.
    I [01/Jan/2007:14:50:29 -0100] Started backend /usr/lib/cups/backend/usb (PID 4999) for job 13.
    E [01/Jan/2007:14:50:31 -0100] [Job 13] /undefined in ESPwl
    E [01/Jan/2007:14:50:31 -0100] PID 4998 (/usr/lib/cups/filter/foomatic-rip) stopped with status 3!
    I [01/Jan/2007:14:50:31 -0100] Hint: Try setting the LogLevel to "debug" to find out more.
    I [30/Dec/2006:23:41:32 -0100] Scheduler shutting down normally.
    I [30/Dec/2006:23:41:32 -0100] Saving remote.cache...
    I [30/Dec/2006:23:41:32 -0100] Saving job cache file "/var/cache/cups/job.cache"...
    I [30/Dec/2006:23:42:56 -0100] Listening to ::1:631 (IPv6)
    I [30/Dec/2006:23:42:56 -0100] Listening to 127.0.0.1:631 (IPv4)
    I [30/Dec/2006:23:42:56 -0100] Loaded configuration file "/etc/cups/cupsd.conf"
    I [30/Dec/2006:23:42:56 -0100] Using default TempDir of /var/spool/cups/tmp...
    I [30/Dec/2006:23:42:56 -0100] Cleaning out old temporary files in "/var/spool/cups/tmp"...
    I [30/Dec/2006:23:42:56 -0100] Configured for up to 100 clients.
    I [30/Dec/2006:23:42:56 -0100] Allowing up to 100 client connections per host.
    I [30/Dec/2006:23:42:56 -0100] Using policy "default" as the default!
    I [30/Dec/2006:23:42:56 -0100] Full reload is required.
    I [30/Dec/2006:23:42:56 -0100] Loaded MIME database from '/etc/cups': 34 types, 39 filters...
    I [30/Dec/2006:23:42:57 -0100] Loading job cache file "/var/cache/cups/job.cache"...
    I [30/Dec/2006:23:42:57 -0100] Full reload complete.
    I [30/Dec/2006:23:42:57 -0100] Listening to ::1:631 on fd 2...
    I [30/Dec/2006:23:42:57 -0100] Listening to 127.0.0.1:631 on fd 3...
    E [30/Dec/2006:23:42:57 -0100] Unable to set ACLs on root certificate "/var/run/cups/certs/0" - Operation not supported
    I [30/Dec/2006:23:47:20 -0100] Scheduler shutting down normally.
    I [30/Dec/2006:23:47:20 -0100] Saving remote.cache...
    I [30/Dec/2006:23:47:20 -0100] Saving job cache file "/var/cache/cups/job.cache"...
    I [30/Dec/2006:23:51:19 -0100] Listening to ::1:631 (IPv6)
    I [30/Dec/2006:23:51:19 -0100] Listening to 127.0.0.1:631 (IPv4)
    I [30/Dec/2006:23:51:19 -0100] Loaded configuration file "/etc/cups/cupsd.conf"
    I [30/Dec/2006:23:51:19 -0100] Using default TempDir of /var/spool/cups/tmp...
    I [30/Dec/2006:23:51:19 -0100] Cleaning out old temporary files in "/var/spool/cups/tmp"...
    I [30/Dec/2006:23:51:19 -0100] Configured for up to 100 clients.
    I [30/Dec/2006:23:51:19 -0100] Allowing up to 100 client connections per host.
    I [30/Dec/2006:23:51:19 -0100] Using policy "default" as the default!
    I [30/Dec/2006:23:51:19 -0100] Full reload is required.
    I [30/Dec/2006:23:51:19 -0100] Loaded MIME database from '/etc/cups': 34 types, 39 filters...
    I [30/Dec/2006:23:51:19 -0100] Loading job cache file "/var/cache/cups/job.cache"...
    I [30/Dec/2006:23:51:19 -0100] Full reload complete.
    I [30/Dec/2006:23:51:19 -0100] Listening to ::1:631 on fd 2...
    I [30/Dec/2006:23:51:19 -0100] Listening to 127.0.0.1:631 on fd 3...
    E [30/Dec/2006:23:51:19 -0100] Unable to set ACLs on root certificate "/var/run/cups/certs/0" - Operation not supported
    I [31/Dec/2006:20:33:20 -0100] Scheduler shutting down normally.
    I [31/Dec/2006:20:33:20 -0100] Saving remote.cache...
    I [23/Dec/2006:12:12:21 -0100] Scheduler shutting down normally.
    I [23/Dec/2006:12:12:21 -0100] Saving remote.cache...
    I [23/Dec/2006:12:12:21 -0100] Saving job cache file "/var/cache/cups/job.cache"...
    I [23/Dec/2006:12:13:33 -0100] Listening to ::1:631 (IPv6)
    I [23/Dec/2006:12:13:33 -0100] Listening to 127.0.0.1:631 (IPv4)
    I [23/Dec/2006:12:13:33 -0100] Loaded configuration file "/etc/cups/cupsd.conf"
    I [23/Dec/2006:12:13:33 -0100] Using default TempDir of /var/spool/cups/tmp...
    I [23/Dec/2006:12:13:33 -0100] Cleaning out old temporary files in "/var/spool/cups/tmp"...
    I [23/Dec/2006:12:13:33 -0100] Configured for up to 100 clients.
    I [23/Dec/2006:12:13:33 -0100] Allowing up to 100 client connections per host.
    I [23/Dec/2006:12:13:33 -0100] Using policy "default" as the default!
    I [23/Dec/2006:12:13:33 -0100] Full reload is required.
    I [23/Dec/2006:12:13:33 -0100] Loaded MIME database from '/etc/cups': 34 types, 39 filters...
    I [23/Dec/2006:12:13:33 -0100] Loading job cache file "/var/cache/cups/job.cache"...
    I [23/Dec/2006:12:13:33 -0100] Full reload complete.
    I [23/Dec/2006:12:13:33 -0100] Listening to ::1:631 on fd 2...
    I [23/Dec/2006:12:13:33 -0100] Listening to 127.0.0.1:631 on fd 3...
    E [23/Dec/2006:12:13:33 -0100] Unable to set ACLs on root certificate "/var/run/cups/certs/0" - Operation not supported
    I [25/Dec/2006:22:12:48 -0100] Scheduler shutting down normally.
    I [25/Dec/2006:22:12:49 -0100] Saving remote.cache...
    any body? seems from permissions?can any devs update a package solving this problm?

  • Does anybody know how to get help with this one?

    Hello there!  
    I wanted to get an advice on how to get in touch with the appropriate person at BT that could help with my situation.
    I have tried telephone help, complaints by email and unfortunately still waiting for somebody from the customer services to help me out.
    I have recently moved home.  I contacted BT on 26th June to organise the line transfer to the new address. The date was set for 18th July. I also ordered line rental saver and paid for it over the phone. All went smooth, telephone and broadband was working fine at the new place, but on the 23rd July I was sent an email that "BT is sorry that I am leaving". 
    I thought it was a mistake, but the lady in the on-line chat said somebody stopped my service. Later she rang and left a message saying that I must have requested to move to another provider. Did not manage to speak to her again, but phoned the help line this time.
    There a gentleman was trying to convince me that I called BT and cancelled my service on the 18th July and to him I was not a BT customer anymore. The truth is that I did not request to stop my service, anyway - why would I do that after paying for a year in advance. This has no logic, but because computer says so then he thinks I did it.
    He also added that my account is a 'mess'. He then promised that somebody would get in touch to sort it out as my line rental was gone and my phone and internet could go off any minute.
    I did not get any help. After that I wrote to them  3 email complaints to request assistance. They called and aknowledge they will help, but 3 weeks down the line nothing was done to explain the situation. Left the messages to the person from email complaints to ring me or email me -never happened.
    Last week I got 2 emails welcoming me to BT and outlining the call plans that were diferent from each other and the one I agreed to on the 25th June. When I called help line 2 days ago a lady confirmed on which one I am on, but could not sort out the most annoying thing - the 'final' bill. 
    I was sent a bill for over 200 pounds due to premature termination of phone and broadband service , which I never ordered. They already took the money this week. My line saver is gone as well. So I am 360 pounds short. I aslo have no access to myBT to monitor my phone activity or make orders.They also did not send any confrimation of the call plan I am currently on.
    It is a very annoying situation, because somebody at BT made an error and I am unable to get to anybody that could help. Everytime you call the help line you speak to somebody else and despite me thinking the email complaints would be the way forward they are not. Would appreciate some advice on how to tackle these issues: false accusations from them, inappropriate billing, problem with myBT.
    Thanks Lukasz

    Hi lbadek
    I can help with this please send us an email using the contact the mods link in my proifle and we will investigated from there.
    Thanks
    Stuart
    BTCare Community Mod
    If we have asked you to email us with your details, please make sure you are logged in to the forum, otherwise you will not be able to see our ‘Contact Us’ link within our profiles.
    We are sorry that we are unable to deal with service/account queries via the private message(PM) function so please don't PM your account info, we need to deal with this via our email account :-)

  • Could i get some help with this one

    the aim of this project is to make a n by n maze and traverse this. if, while traversing the maze the system realises that there is a dead end it turns back. My problem is that sometimes it turns back and sometimes it doesnt. Here, below is the method for traversing the maze. Could i get a second pair of eyes to help me out a bit with this code?
         * Prints out the current maze
        public void show()
             for (int i=0;i<array.length;i++)
                for (int j=0; j<array.length;j++)
    System.out.print(array[i][j]) ;
    System.out.println();
    * traverses through the maze
    * @param row: the current row
    * @param column: the current column
    public void traverse(int row, int column)
    if ((row==3)&&(column==column-1))//checks if the array has reached the end
    System.out.println("array is solved");
    }else
    if(array[row-1][column]=='.')//checks if should move up
    array[row][column]='x';//marks path
    array[row-1][column]='x';//marks path
    System.out.println();
    show();
    traverse(row-1,column);
    }else
    if (array[row+1][column]=='.')//checks if should move down
    array[row][column]='x';//marks path
    array[row+1][column]='x';//marks path
    System.out.println();
    show();
    traverse(row+1,column);
    }else
    if(array[row][column+1]=='.')//checks if should move left
    array[row][column]='x'; //marks path
    array[row][column+1]='x';//marks path
    System.out.println();
    show();
    traverse(row,column+1);
    }else
    if ((row!=3)&&(column!=0))
    if(array[row][column-1]=='.')//checks if should move right
    array[row][column]='x'; //marks path
    array[row][column-1]='x';//marks path
    System.out.println();
    show();
    traverse(row,column-1);
    }else/*1*/ if((array[row-1][column]=='#')||((array[row-1][column]=='*'))&&(array[row+1][column]=='#')||(array[row+1][column]=='*')&&(array[row][column+1]=='#')||(array[row][column+1]=='*'))
    //checks if up is clear to move back
    //checks if down is clear so could move back
    //checks if right is clear to move back
    if(row==3&&column-1==0)//checks if at the beginning of the array
    System.out.println("MAze cannot be solved");
    }else
    if (array[row][column-1]=='x')//checks if behind has a x to move
    array[row][column]='*';//prints dead end
    array[row][column-1]='.';
    System.out.println();
    show();
    traverse(row,column-1);
    }else/*2*/ if((array[row+1][column]=='#')||(array[row+1][column]=='*')&&(array[row][column-1]=='#')||(array[row][column-1]=='*')&&(array[row][column+1]=='#')||(array[row][column+1]=='*'))
    //checks if left is clear to move back
    //checks if right is clear to move back
    //checks if up is clear to move back
    if(row-1==3&&column==0)//checks if at the begining of the maze
    System.out.println("MAze cannot be solved");
    }else if (array[row-1][column]=='x')//checks if behind as been marked
    array[row][column]='*';//marks as dead end
    array[row-1][column]='.';
    System.out.println();
    show();
    traverse(row-1,column);
    }else/*3*/ if((array[row+1][column]=='#')||(array[row+1][column]=='*')&&(array[row][column-1]=='#')||(array[row][column-1]=='*')&&(array[row][column+1]=='#')||(array[row][column+1]=='*'))
    //checks if right is clear to move back
    // checks if left is clear to move back
    //checks if up is clear to move back
    if (array[row-1][column]=='x')//checks if behind as been marked as a path
    array[row][column]='*';//marks as dead end
    array[row-1][column]='.';
    System.out.println();
    show();
    traverse(row-1,column);
    } else/*4*/ if((array[row][column-1]=='#')||(array[row][column-1]=='*')&&(array[row+1][column]=='#')||(array[row+1][column]=='*')&&(array[row-1][column]=='#')||(array[row-1][column]=='*'))
    //checks if right is clear to move back
    //checks if down is clear to move back
    //checks if up is clear to move back
    if (array[row][column+1]=='x')//checks if behind has been marked as a path
    array[row][column]='*';//marks as dead end
    array[row][column+1]='.';
    System.out.println();
    show();
    traverse(row,column+1);

    morgalr wrote:
    That is truely one of the better threads that I've seen on the net for maze traversal.Forget "for maze traversal". That was one of the most interesting of all the threads I've seen here in quite a while. My sincerest admiration to those who contributed and eventually worked it out (and it wasn't me that's for sure), and especially to Keith. Impressive!

  • Good luck with this one folks..

    Just came back from vacation and dowloaded my photos to Iphoto in Guest status.  ( I did not realize I was logged into guest until much too late) I logged off and the photos are gone. I let the laptop wipe my SD Card as well.  Tried to recover from the SD Card..Apple does a good job of deleting items....Ouch.  Two weeks and 1000 photos gone like that.  Any ideas? My stupidity definately, however I think the engineers should have built some redundancies in to alert you when you are dealing with this much data.  Why it even alows me to sync my I pad to a guest profile is beyond me....I think I have the perfect storm here....So it goes.
    Any last ditch efforts will be taken..ideas?

    A quick google search turns up many "recovery services".  I've not used any of these but here's one:
    http://www.totalaccessdatarecovery.com/Digital-Camera-Data-Recovery.php
    Regards,
    Captfred

  • Error 1603: Need some help with this one

    When installing iTunes I first get an error box saying
    "Error 1406: Could not write value to key \Software\classes\.cdda\OpenWithList\iTunes.exe. Verify that you have sufficient access to that key, or contact your support personnel."
    The second one (after I click on Ignore on the last box) I get it this one:
    "Error: -1603 Fatal error during installation.
    Consult Windows Installer Help (Msi.chm) or MSDN for more information"
    Strange thing is that I do have full access to my computer (or atleast in all other cases I have had since I am the only one with an account on it).
    I have done my best in trying to solve it myself but I'm running out of ideas. I have downloaded latest versions from the website and tried installing Quicktime separately. I have also tried removing Quicktime using add/or remove programs though I just I didn't dare to take full removal because it said something about system files.
    Anyway I really need some help with this, anyone got any ideas?
    Greets,
    Sixten
      Windows XP Pro  

    Do you know how to count backwards? Do you know how to construct a loop? Do you know what an autodecrementor is? Do you know how to use String length? Do you know Java arrays start with index 0 and run to length-1? Do you know you use length on arrays too? Do you know what System.out.println does?
    Show us what you have, there isn't anything here that isn't easily done the same as it would be on paper.

  • I feel lost with this phone! :(

    I got the bb 8330 about a week ago and think i've done pretty well but im still lost in the following areas:
    how to add a contact to bb messenger?
    how to download music from my computer (i downloaded the bb disc and have usb cord) to my bb?
    how to send a picture in a sms instead of email (no sms option when i click on the pic, only email)
    Can someone pretty please help me?
    Thank you, Thank you!
    Stacy

    For the BB Mess
    There are two methods of adding contacts in BlackBerry Messenger. One is via PIN and the other is via email. A PIN is an eight digit alpha-numeric code that is assigned to every BlackBerry device. You can find your own PIN code by going to Options>Status>PIN on your BlackBerry device. If you are requesting a contact by email, you simply need an email address associated with their device.
    Method 1—Requesting by PIN
    First, you will have to open up BlackBerry Messenger and click the track wheel or trackball depending on the device you have. In the drop down menu, select ‘Add a contact.’ You will be brought to your address book. At the top of the list there will be an option that says ‘[Use Once]’. Select this option and a menu will appear. Click ‘Request by PIN.’ On the next screen you can enter the PIN code of your contact and press enter. You will be prompted to enter a personal message if you choose and press ok. At this point the contact will be added to the pending group in BlackBerry Messenger until the contact accepts you.
    Method 2—Requesting by Email
    Requesting a contact by email is the almost same process as requesting by PIN. The only difference is instead of clicking ‘Request by PIN’ you click ‘Request by Email.’
    Method 3—Adding a contact already in your address book
    If you remember back in method one when you were brought to your address book, we selected ‘[Use Once].’ This is unnecessary if the contact is already in your address book. If the contact is in your address book and has a PIN or Email address associated with it, you can simply click their name. Again, you will be given the option of adding a personal message.
    Can I create groups to organize my contacts?
    Yes, BlackBerry Messenger will allow you to create groups of contacts. For example, perhaps you would like to have a group for family members and a group for work contacts. With BlackBerry Messenger open, click the trackball and select ‘Add Group.’ Here you can enter the name for your new group. Now that you have created your groups, you need to organize your contacts. Highlight a contact’s name in BlackBerry Messenger and click the trackball; select move. A menu will allow you to select the group where the contact should go. Select the group and press enter. The contact will now be listed under that group.

Maybe you are looking for