All things are lawful, but not all things are profitable.
marco cucinotta wrote:Line 6 has an error with the < operator.
Line 11&13 says cannot convert from card to Int.
This method is passing in Card[] hand
"Leadership is nature's way of removing morons from the productive flow" - Dogbert
Articles by Winston can be found here
All things are lawful, but not all things are profitable.
marco cucinotta wrote:Still working on that issue but when I call my shuffle method in another class and run it, the error says illegalargumentexception: n must be positive. I thought maybe i should start at 1, but then error was 52. I thought this shuffle method was correct.
All things are lawful, but not all things are profitable.
Carey Brown wrote:
All things are lawful, but not all things are profitable.
All things are lawful, but not all things are profitable.
marco cucinotta wrote:Thanks for pointing that out Carey, the topCard should have been nextCard from earlier in my program. This code works for up to 5 hands, but then gets an outofbounds: 55
All things are lawful, but not all things are profitable.
marco cucinotta wrote:This code works for up to 5 hands, but then gets an outofbounds: 55
marco cucinotta wrote:I set nextCard = nextCard and it works for 10 hands now. But anything above 10 gets an error outofbounds: 52. Is this error still because of the nextCard algorithm? or from somewhere else in my code?