Computing desk | ||
---|---|---|
< December 13 | << Nov | December | Jan >> | December 15 > |
Welcome to the Wikipedia Computing Reference Desk Archives |
---|
The page you are currently viewing is an archive page. While you can leave answers for any questions shown below, please ask new questions on one of the current reference desk pages. |
I'm investigating the makeEmptyPicture() function in jython for an assignment which is due shortly. If anybody knows how to incorporate the function into some scripting to do with assigning numbers to produce a picture, please let me know.
Thanks David Smith 14/12/2013. 15:44 Thesmithster (talk) 05:24, 14 December 2013 (UTC)
I'm trying to finish up a game of the card game War with Java. I'm getting the following error when I try to run the program and I don't know why. Could someone help me understand why this is happening?
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 52
at Deck.DrawCard(Deck.java:88)
at War.main(War.java:36)
The relevant portions of code are here:
From my Deck class
|
---|
|
From my War class
|
---|
|
Thanks, Dismas|(talk) 06:08, 14 December 2013 (UTC)
_deck[i] = _deck[i+1];
will therefore throw an exception when i
has value 51. JIP | Talk 07:33, 14 December 2013 (UTC)int _numCards = _deck.length;
to _deck.length=1;
and that seems to have fixed the issue. Dismas|(talk) 07:44, 14 December 2013 (UTC)I have been using google chrome to explore the internet for a few years back.Everything was nice until a message started to appear whenever i started the chrome.The message is "Your preferences cannot be read. Some features may be unavailable and changes to preferences won't be saved." I searched for the solution on the net and tried many suggestions but nothing worked.I reinstalled Chrome, deleted User Data,changed permission settings and everything I could find. But the message is continuing to appear. Plz help.It is really annoying. — Preceding unsigned comment added by 113.199.235.40 (talk) 12:22, 14 December 2013 (UTC)