Home > front end >  Flexible use of Java collection storage
Flexible use of Java collection storage

Time:12-08

Java collection storage of flexible use of
The List collection storage number 54

The Map & lt; The key, value> Key corresponding to the number, the value is the brand of design and color (red Fang Mei black) + specific card, such as spades 2

Design and color is stored in the two arrays + 13 CARDS

The card information into the list and map

Licensing... (order)

Have a look at what is their brand (see)

The code below
Package DouDiZhu.

import java.util.*;

Public class DouDiZhuDemo {
Public static void main (String [] args) {

//store number
List List=new ArrayList<> (a);
//save the card information
Map The map=new HashMap<>
  • Related