Created
September 5, 2021 02:28
-
-
Save wkdalsgh192/c9bbb002a3967f9d608f8420a616dff1 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Creata a hash map class and put values into the map | |
Map<String, String> map = new HashMap<>(); | |
map.put("1", "A"); | |
map.put("2", "B"); | |
map.put("3", "C"); | |
// Create a class that only contains a collection. | |
public class GameRanking { | |
private Map<String, String> ranks; | |
public GameRanking(Map<String, String> ranks) { | |
this.ranks = ranks; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment