Skip to content

Instantly share code, notes, and snippets.

@AdmiinX
AdmiinX / RxJavaTest.java
Created November 24, 2016 23:23
test to show the difference between RxJava operators (concat , concatEager, merge)
import org.junit.Test;
import java.util.concurrent.TimeUnit;
import rx.Observable;
import rx.observers.TestSubscriber;
public class RxJavaTest{
@Test
public void testConcatenating(){
Observable<String> first = Observable.just("first").delay(1,TimeUnit.SECONDS);
//============================================================================
// Task : Compiler
// Description : Lexical Analyzer
// Name : Mahmoud Mohamed Fathy
// ID : 2012030135
//============================================================================
#include <iostream>
#include <fstream>
#include <string>