Distinguishing rows in my table
<p>First ill start off by explaining what I have, then what I am trying to do.</p>

<p>Currently, my program creates a deck of cards using arrays (I dont want enum's). Then it shuffles the cards into a random order and prints a table of 7 X 7 cards. </p>

<p>What I want to do is to be able to ask the user what row their card is in, then flip the table so that the row they selected is now a column. </p>

<p>How do I distinguish the rows (like in a 2d array) so that I can then ask the user what row their card is in
and
How do I flip this table so that the row becomes the column </p>

<p>Here is my code so far:</p>

<pre><code>public class Deck {
    private Card[] deck;
    private int currentCard;
    String[][] multi = new String[7][7];

    public Deck() {
        String[] Faces = { "2", "3", "4", "5", "6", "7", "8", "9", "T", "J", "Q", "K", "A" };
        String[] Suits = { "♠", "♣", "♦", "♥" };

        deck = new Card[52];
        currentCard = 0;

        for (int suit = 0; suit &lt; 4; suit++) {
            for (int face = 0; face &lt; 13; face++) {

                deck[(face + (suit * 13))] = new Card(Suits[suit], Faces[face]);
            }
        }
    }

    public void shuffle() {
        currentCard = 0;

        SecureRandom randomNumber = new SecureRandom();

        for (int first = 0; first &lt; deck.length; first++) {
            int second = randomNumber.nextInt(52);

            Card temp = deck[first];

            deck[first] = deck[second];
            deck[second] = temp;
        }
    }

    @Override
    public String toString() {
        String s = "";
        int k;
        k = 0;
        for (int i = 0; i &lt; 7; i++) {
            for (int j = 1; j &lt;= 7; j++)
                System.out.print(deck[k++] + "    ");
            System.out.println("");
        }
        return (s);
    }

    public static void main(String[] args) {
        Deck theDeck = new Deck();
        theDeck.shuffle();
        theDeck.toString();

    }
}
</code></pre>