Search:

Type: Posts; User: summit45

Search: Search took 0.08 seconds.

  1. Replies
    2
    Views
    1,351

    [SOLVED] Re: Cannot declare an array var within a class

    So THAT'S what those initialization blocks in that one lesson were for. Well, that wasn't explained. What they were used for I mean. I guess now I know lol. Thanks!

    -s45
  2. Replies
    2
    Views
    1,351

    [SOLVED] Cannot declare an array var within a class

    Well, this makes no sense. Here's the code:



    package cardsexercise;

    class Card {

    private String[] suit, rank;
    suit = new String[4];
Results 1 to 2 of 2