Void is not a functional interface
Your method reference syntax is wrong. Change it like so,
Observable.just(colors).subscribe(System.out::println);
Your method reference syntax is wrong. Change it like so,
Observable.just(colors).subscribe(System.out::println);