HT1541 i still cant get my code

i still can't get my code

Exception in thread "main"
java.lang.NullPointerException
     at Board.pcomp(Board.java:81)
     at Board.addremovebridge(Board.java:34)
     at Twixt.main(Twixt.java:21)
So the null pointer occurs on the 81st line in the Board.java source code file. I'm not sure, but I expect this is line 81.if(d.x == e.x && d.y == e.y){Here's one way to troubleshoot null pointer problems. First find the line causing the error. Then, use System.out.println() statements to display the values of all the reference variables in that line, one variable at a time. So if I guessed correctly on line 81, you would put these statements just before line 81System.out.println("d " + d);
System.out.println("e " + e);Because d and e are the only reference variables in that line. When you run the code after putting these lines in, one or both of these will display "null" and that will tell you which variable to trace. You will need to trace backward through your code a find out why d or e or both are null.
(hint: A statement like Object[] objects = new Object[10];" creates an Object array with 10 elements, each of which is null. You have to use "objects[1] = new Object();" to create an element in the array which is an Object.)

Similar Messages

  • HT1212 i have tried all of the suggested things still cant get in the ipod

    i have tried all of the suggested things and still cant get in the ipod

    As instructed in the If you have never synced your device with iTunes, or you do not have access to a computer section of the article, put it in recovery mode and restore:
    Disconnect the USB cable from the device, but leave the other end of the cable connected to your computer's USB port.
    Turn off the device: Press and hold the Sleep/Wake button for a few seconds until the red slider appears, then slide the slider. Wait for the device to shut down.
    While pressing and holding the Home button, reconnect the USB cable to the device. The device should turn on.
    Continue holding the Home button until you see the Connect to iTunes screen.
    iTunes will alert you that it has detected a device in recovery mode. Click OK, and then restore the device.

  • I have set up a apple id and i still cant get my imessage or facetime to work?

    Set up a apple id and still cant get my fact time or i message to work

    Launch the Console application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Console in the icon grid.
    Make sure the title of the Console window is All Messages. If it isn't, select All Messages from the SYSTEM LOG QUERIES menu on the left. If you don't see that menu, select
    View ▹ Show Log List
    from the menu bar.
    Click the Clear Display icon in the toolbar. Then try the action that you're having trouble with again. Select any messages that appear in the Console window. Copy them to the Clipboard by pressing the key combination command-C. Paste into a reply to this message (command-V).
    When posting a log extract, be selective. In most cases, a few dozen lines are more than enough.
    Please do not indiscriminately dump thousands of lines from the log into this discussion.
    Important: Some private information, such as your name, may appear in the log. Anonymize before posting.

  • I installed Aperture from the App Store, it was working ok, then suf=ddenly it wont load, I get the "Aperture encountered problem" message, have updated all OSX and Aperture but I still cant get it to work, any ideas ?

    I installed Aperture from the App Store, it was working ok, then suf=ddenly it wont load, I get the "Aperture encountered problem" message, have updated all OSX and Aperture but I still cant get it to work, any ideas ?

    I installed Aperture from the App Store, it was working ok, then suf=ddenly it wont load, I get the "Aperture encountered problem" message, have updated all OSX and Aperture but I still cant get it to work, any ideas ?

  • HT1725 I tried several times downloading my interrupted downloads, but still cant get through it. Is there anyway to do it?

    I tried several times already and still cant get to fully download my interrupted process. Any clues?

    Change/Verify Account https://forums.adobe.com/thread/1465499 may help
    -Credit card https://helpx.adobe.com/utilities/credit-card.html
    or
    Unless an employee stops by this forum and reads your message, you need to know...
    This is an open forum, not Adobe support... you need Adobe support
    Adobe contact information - http://helpx.adobe.com/contact.html may help
    -Select your product and what you need help with
    -Click on the blue box "Still need help? Contact us"

  • Why cant i receive sms after i have switched from iphone? I have unregistered my number but still cant get them

    Why cant i receive sms after i have switched from iphone? I have unregistered my number but still cant get them

    See this support document http://support.apple.com/kb/TS5185. Follow all of the steps.

  • Premier pro is not on the list in cloud to download? i have tried multible ways but still cant get the free trial download

    premier pro is not on the list in cloud to download? i have tried multible ways but still cant get the free trial download

    Hi axeevan,
    Please download the Premier Pro CC application through your account on adobe.com.
    If in case you still face issues, please contact support:
    https://helpx.adobe.com/contact
    Regards,
    Sheena. 

  • I cant get any pop ups to open? i have allowed sites and still cant get anything, so turned off and still cant enlarge pictures etc thru a pop window

    i have firefox version 3.6.10, and until about a week ago, i had no problems clicking on pictures (example: on ebay) to enlarge them in a new pop window. i have tried disabling the pop up blocker completely, even though i had ebay as an "allow" site on my pop up blocker when it was enabled.
    cant get any pop up to go through. in the lower left hand corner of the window, when i click on a link that should open a pop up window, all it shows is "javascript:;" and nothing happens
    i have updated to the newest version of java and deleted older version.. still having issues

    Ouch, tough spot, but offhand I'd say some memory may have gone bad, or maybe just needs re-seating after all this time.
    Not much you can do, but try this anyway...
    PRAM reset, CMD+Option+p+r...
    http://support.apple.com/kb/ht1379
    In fact, do 3 in a row, takes a bit of time.

  • I still am getting Error Code: U43M1D207.  Has anyone figured this out yet?

    I am still getting error code: U43M1D207 when I go to install udates.
    Has anyone figured this out?  Its been over three months now

    Hi them,
    Which OS you are working on ? Can you try deleting the following folder and retry ?
    mac : /Users/[username]/Library/Application Support/Adobe/AAMUpdater/1.0/
    Win : C:\Users\username\AppData\Local\Adobe\AAMUpdater\1.0
    Let us know if it helps!
    Thanks!
    Kusha

  • Still cant get my ipod to work...

    My earlier post: http://discussions.apple.com/thread.jspa?threadID=971361
    I still cannot get it to work, I have tried everything. I have reset and restored my ipod multiple times. Thinking about sending it back soon. I get that same error every time I try and put music on my ipod, sometimes it works...and sometimes it wont. Sometimes I cant get a certain song to go on, and then another time it will.
    All my music was on my computer before I had my ipod. It was all either from cds or downloaded. A friend has also sent me tons of music that works on his ipod fine.
    I have always used Winamp to listen to my music, and still do. Could that have anything to do with it? Or made it another format?
    Very annoying, anyone have any clues?
      Windows XP Pro  

    Did you read the link that StarDeb55 provided? It sounds like a local disk problem. Can the Windows Defrag utility run with out errors? Is your music library shared? i.e. Do multiple applications use the files. Like say Windows Media Player and iTunes. If so the other program(s) may be locking the file(s) preventing iTunes from coping it.
    P.S. If you are new to forums creating duplicate threads is generally considered a no-no and makes it less likely that people will respond to your post.

  • Installing I cant get the code from entering the redemption code on lightroom, just bought it

    Its not a tech issue other than I cant get the serial number from your site adobe.com/go/getserial, I just bought this today at Office Depot they were moving their store and it was like everything else discounted.

    Redemption Code Help
    http://helpx.adobe.com/x-productkb/global/redemption-code-help.html

  • HT5622 ive verified my email information and my apple id but still cant get into my phone

    i cant get into my phone even tho i put in all the correct info

    To resolve this issue, from the Safari menu, choose Preferences > Privacy. Then, choose an option other than Always for blocking cookies.
    Note: The default option for Safari is to block cookies "From third parties and advertisers" and is recommended for most usage.
    If you want to block cookies temporarily when visiting websites, choose Safari > Private Browsing. Learn more about Private Browsing.
    I hope this will be helpful for you.

  • Problem playing facebook games , being asked to download flashplayer and i have but still cant get on the games

    befor downloading firefox i play games on facebook and now i cant play these games , it asks me to download flashplayer and i have done so but still cant play them

    You are downloading the Flash installer, which I think itself downloads another installer, which may again download something else that has to run. Adobe's installer is one of the worst pieces of software on the PLANET.
    That said, the problem is that you are not actually running the installer and letting it update Flash. Doing so will force you to quit Safari in the process.
    Go look for whatever Adobe downloaded to your Downloads folder and run it.

  • HT5621 i have forgotten my Apple password and i go to reset it and the server aint servin. I have had a verification code sent to me 3 times and the page or address is no good and i cant get the code to send the verification. In other words i cant get int

    Hey guys, Heres one for you tech guys. It was a false alarm on my password issue. Somehow or another i was going to discuss this issue with this or some other forum. Now ,i aint no hi-tech redneck but i aint stupid either, maybe a little dumb ,but hey. I got to the point where i had to sign in for this disscusion and i thought,CRAP, I cant sign in,i dont know my password. Mind You, I have been dealin with this for a couple of hours and i thought well, 1 more time,  it might as well have been 52 times but, it went thru. I might have typed it wrong a couple of times but i typed it most everytime cuz i knew that was it and it is a perty simple password. Beats me. figure that one out. Glitch in the system maybe? Good Luck,  Bobby Dawg   Goin down low>

    Thanks for that. Much more constructive than the last comment. It's only the restriction code I can't recall, not the access passcode. So I can currently access the device, just not age restricted content. Does that's make a difference? I also wondered if anyone knew how many attempts you get to try to get it right. Now tried 21 times and so far nothing bad has happened but I am concerned I'll eventually be completely locked out of the device. That doesn't seem in the spirit of things though. Surely it's foreseeable that a child could repeatedly try to guess the code so I can't see that it would be right to lock the device down completely in that circumstance, particularly if the access code is being typed in correctly every time.
    Thanks

  • Tried Everything, still cant get rollovers and actions to work

    So ive gone thru page after page of this and that and nothing is working. I have a site file of my webpage (www.bluemoonbandblues.com/index4.html)
    working in GoLive CS2. I am still in the learning stages, but think that this should have been fixed a long time ago.
    I know its the Generated Items (CSScriptLib) but cant seem to figure out exactly how. I have made sure everything is linked to its appropriate file on the server. I have encoded into page and vice versa. I have flattened the CSScriptLib. and made sure that it (GenItems Folder) is on the server as well and in the same row as the index4 page. And Synched. Everything that I can rake up to try.
    I know that Im missing something stupid. But I just cant seem to get it after looking through everyone else's similar problems.
    By the way, the entire thing was working (online) at one point, until I was messing with the stinkin TimeLine Editor for 2 seconds, and then everything went haywire.
    Thanks in advance. I really appreciate any feedback. Please don't yell.
    Eric

    Okay, so I even tried the Rebuild Script Library Option in the site setting area of my site window tool bar..but nothing. Soooo, I've started over from scratch and everything is going great,....thanks for asking....but now my problem is one ive had before with hidden layers that ive applied time editorness to, and that is that the image with an action to play scene is having that particular scene play in the upper left corner of its own layer box. aldfjlghdgh. So, i would move it in the editor and it would be okay. (that i know of) but this doesn't have a time editor "shadow layer" adfkjaljflaf. that makes no sense does it. forgive me. but anyhoo. this makeshift button doesn't wana show/hide the layer in the spot it's supposed to be in because it's unruly like my kids. It instead puts it into the top left corner of itself when activated. weird huh? haha. im sure this happens all the time to inexperienced fools like myself.

Maybe you are looking for

  • How to only remove the background pic in text mess...

    Hello there I'm a pround owner of a Nokia E52 now and as any enthusiastic new buyer, I tried changing the theme & stuff. I came upon some very cool themes (in tehkseven.net), but all their problem is that the background picture interferes with my tex

  • Training Videos don't play...

    Hopefully a quick question... I'm ready to start the training but none of the videos play. When I click the video on the web page I get a long vertical rectangle with an X in the upper left corner. After downloading and storing the videos, using Real

  • External wont stay connected thru airport

    I have an external hard drive connected wirelessly thru my airport. I have always had issues with it staying connected, so much so they replaced my airport. Now that I have upgraded to SL, the problem has gotten way worse, it stays connected for mayb

  • Iomega drive and airport extreme

    any advice on getting an iomega 1.5 TB drive (formatted for Mac) to work with airport extreme base station - is not recognized anywhere at all, including in airport utility. It is recognized (and fully functional) no problem directly on my macbook pr

  • How do I transfer the complete action panel in Adobe CC from my laptop to my new desktop?

    How do I transfer the complete action panel in Adobe CC from my laptop to my new desktop?