The program will receive the following input of characters (Cards) for a Poker program:
2c 3s 6d 7s 8h Kh Jd 4d Jc Kc Qc Tc 9c Jh 9s 9h 9d Qs Ks Js
I need to store that in an array, and then need to parse the array one at a time to store each Card as an object. I was thinking of creating a while loop to run throgh the array one character at a time.
The thing is, I first need to store that input string into the array. My question is how.
The attached code is what I have so far:
public class DriverPoker
public static void main(String args)
Scanner card_input = new Scanner(System.in);
char  stringCardsArray = new char;
stringCardsArray = card_input.nextLine();