Quote:
My project is to "write code for a class called Deck (may need other classes for your implementation as well). "
basically i have to create a deck of cards and be able to shuffle it and sort it as well. The problem is for sorting the deck, clubs should be considered the lowest suit and hence it should be sorted into the lowest indicies (i don't know how to make one String "lower" than another)
Also, I have created a card class and a deck class but i don't know how to relate them.
There are some good examples of creating a Card class using enums for the suits and values that you can find with Google. As for sorting, consider making your Card implement Comparable<Card> and in the compareTo method use the suit and value both to figure out what value to return, 1, 0, or -1.