[Jprogramming] Counting occurrences in a list

David Vaughan purpleblues13 at googlemail.com
Wed Oct 12 06:14:50 HKT 2011


I have strings and a numbers in adjacent boxes, like so:

┌─────────┬─┐
│0        │1│
├─────────┼─┤
│1        │1│
├─────────┼─┤
│8        │1│
├─────────┼─┤
│27       │1│
├─────────┼─┤
│46       │1│
├─────────┼─┤
│125      │2│
├─────────┼─┤
│126      │1│
├─────────┼─┤
│334      │1│
├─────────┼─┤
│279      │1│
├─────────┼─┤
│0001     │1│
└─────────┴─┘

How can I do things like sort or >./ on only the second box of each row?


More information about the Programming mailing list