-
Notifications
You must be signed in to change notification settings - Fork 0
/
DogsSizeAndBreed.java
36 lines (28 loc) · 1.14 KB
/
DogsSizeAndBreed.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
import java.util.HashMap;
import java.util.Map;
public class DogsSizeAndBreed {
Map<Integer, String> mapDogSizeLarge = new HashMap<Integer, String>();
public Map<Integer, String> getMapDogSizeLarge() {
mapDogSizeLarge.put(1, "German Shepherd");
mapDogSizeLarge.put(2, "Golden Labrador");
mapDogSizeLarge.put(3, "Golden Doodle");
mapDogSizeLarge.put(4, "Husky");
return mapDogSizeLarge;
}
Map<Integer, String> mapDogSizeMedium = new HashMap<Integer, String>();
public Map<Integer, String> getMapDogSizeMedium() {
mapDogSizeMedium.put(1, "Bulldog");
mapDogSizeMedium.put(2, "Bull Terrier");
mapDogSizeMedium.put(3, "Chow-Chow");
mapDogSizeMedium.put(4, "Corgi");
return mapDogSizeMedium;
}
Map<Integer, String> mapDogSizeSmall = new HashMap<Integer, String>();
public Map<Integer, String > getMapDogSizeSmall () {
mapDogSizeSmall.put(1, "Jack Russell Terrier");
mapDogSizeSmall.put(2, "French Bulldog");
mapDogSizeSmall.put(3, "Boston Terrier");
mapDogSizeSmall.put(4, "Pug");
return mapDogSizeSmall;
}
}