Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Main{
- public static ArrayList<Card> cards = new ArrayList<Card>();
- }
- Main.cards.add(new Card());
- public class Card{
- public static ArrayList list;
- (...)
- }
- Card cards = new Card();
- cards.list();
- public class Card{
- public static ArrayList<Card> list = new ArrayList<>();
- //The rest of your code: methods, interfaces, etc.
- }
Add Comment
Please, Sign In to add comment