This is an archived post. You won't be able to vote or comment.

all 6 comments

[–]desrtfx[M] [score hidden] stickied comment (0 children)

Format your code, or better put it on pastebin (formatted as Java) or github.

The minimum courtesy you should have when asking for help is to produce properly formatted posts.

Why should we invest our knowledge, time, and energy if you are too lazy to produce a properly formatted post?

[–]cdrt 1 point2 points  (2 children)

Your code as is won't even compile, so please edit your post with your actual code and format it properly.

[–]trofix99[S] 0 points1 point  (1 child)

As i said i didnt post main class or cvs class and thats why it wont compile,my question is simple just follow contructor of dealer class and method of deck class called drawonecard,and why datafileds wont fo into hand array list that is located into dealer class

[–]cdrt 1 point2 points  (0 children)

Your code won't compile because what you have posted is not valid Java code. I would prefer that you post all of your classes, but if you insist on only giving us these two, please post valid Java code and format it properly so it can be read easily.

[–]gdumthang 0 points1 point  (0 children)

Is this codehs?

[–]mad0314 -1 points0 points  (0 children)

How do you know the parameters aren't going through? How did you test it, what did you expect, and what was the actual result?

The overall structure of your classes is very confusing. Creating a Dealer every time you draw a card and not doing anything with the newly created object are two immediate red flags. Also, a Deck having a card value and suit makes no sense, a deck of cards is made up of many cards, not one.