Skip to content

Instantly share code, notes, and snippets.

@tomoima525
Created December 31, 2015 03:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tomoima525/7681d427961ba89a459c to your computer and use it in GitHub Desktop.
Save tomoima525/7681d427961ba89a459c to your computer and use it in GitHub Desktop.
@habomaijiro氏が食べたラーメン価格帯
価格帯は¥500以上、¥2000以下でソート
```
for (Entry<String, Integer> entry : entries) {
result.put(entry.getKey(), entry.getValue());
if ((entry.getValue() >= 1)) {
try {
int price = Integer.parseInt(entry.getKey());
if(price >500 && price < 2000){
System.out.println("" + entry.getValue() +"\t\t" + price);
}
} catch (NumberFormatException e){
}
}
```
件数 価格
34 1150
32 800
32 900
26 1000
22 1050
20 700
15 930
15 950
14 1100
14 750
11 650
9 1200
9 890
7 1030
7 850
6 790
5 830
4 1080
4 1130
4 980
4 990
3 600
3 780
3 1250
3 920
2 1070
2 1180
2 880
2 1330
2 940
1 1480
1 1010
1 1020
1 1060
1 630
1 690
1 1512
1 1530
1 712
1 714
1 1230
1 884
1 1300
1 1310
1 927
1 960
1 970
1 1835
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment