I've done some rearranging but still can't get the program working. Here's my code:

Code:
public class Main {

    public static void main(String[] args) {
        Card.fillDeck();
    }

}

class Card {

    int suit, rank;
    int index = 0;
    Card[] deck = new Card [52];

    public Card () {
        this.suit = 0; this.rank = 0;
    }

    public Card (int suit, int rank) {
        this.suit = suit; this.rank = rank;
    }

    public boolean isFlush(Card[] x, int y) {
        int count = 0;
        for(index = 0; index < y; index++){
            boolean comp = compareCard(x[index], x[index + 1]);
            if (comp = true){
                count++;
            }
        }
        if (count >= 5){
            System.out.println("Congratulations! You have a flush!");
            return true;
        }
        else{
            System.out.println("Sorry, you do not have a flush.");
            return false;
        }
    }

    public boolean compareCard(Card c1, Card c2){
        if (c1.suit != c2.suit){
            return false;
        }
        return true;
    }

    public void fillDeck(){
        for (suit = 0; suit <= 3; suit++) {
                for (rank = 1; rank <= 13; rank++) {
                deck[index] = new Card (suit, rank);
                index++;
                }
            }
            isFlush(deck,6);
    }
}
I need a work around to calling a non-static method from main. Can anyone help me?