Contact: aviboots(AT)netvision.net.il
43,956 questions
57,384 answers
573 users
import java.util.stream.Stream; public class MyClass { public static void main(String args[]) { Stream<Integer> stream = Stream.of(4, 6, 0, 7, 3, 1); stream.sorted().forEach(System.out::println); } } /* run: 0 1 3 4 6 7 */