Sorting algorithms/Bogosort: Difference between revisions

Content added Content deleted
m (→‎{{header|ALGOL 68}}: nl after works with (wondering if it wouldn't be better to undo the mod to that template))
m (→‎{{header|Java}}: nl after works with)
Line 454: Line 454:
=={{header|Java}}==
=={{header|Java}}==
{{works with|Java|1.5+}}
{{works with|Java|1.5+}}

This implementation works for all comparable types (types with <tt>compareTo</tt> defined).
This implementation works for all comparable types (types with <tt>compareTo</tt> defined).
<lang java>import java.util.Collections;
<lang java>import java.util.Collections;