Sha256: 51d6712e245d5a62943f306c821913e71b5c8a31840e7c88b35cca779a674bac
Contents?: true
Size: 231 Bytes
Versions: 2
Compression:
Stored size: 231 Bytes
Contents
import java.util.Collections import java.util.ArrayList list = ArrayList.new [9,5,2,6,8,5,0,3,6,1,8,3,6,4,7,5,0,8,5,6,7,2,3] puts "unsorted: #{list}" Collections.sort(list) {|a,b| Integer(a).compareTo(b)} puts "sorted: #{list}"
Version data entries
2 entries across 2 versions & 2 rubygems
Version | Path |
---|---|
mirah-0.0.4-java | examples/sort_closure.mirah |
duby-0.0.3-java | examples/sort_closure.duby |