Skip to content

Instantly share code, notes, and snippets.

@CoderJava
Created October 1, 2018 15:58
Show Gist options
  • Select an option

  • Save CoderJava/28abf8dba750f01cb6eda0ac990b0f4a to your computer and use it in GitHub Desktop.

Select an option

Save CoderJava/28abf8dba750f01cb6eda0ac990b0f4a to your computer and use it in GitHub Desktop.
Transforming Operator Buffer RxJava
public class RxTransformingOperatorBuffer {
public static void main(String[] args) throws InterruptedException {
String[] names = new String[]{"Yudi Setiawan", "Rosalia", "Harli Lopies", "Fitriani"};
Observable.fromArray(names)
.buffer(3)
.subscribe(System.out::println);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment