Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Outdated java example in wiki #6331

Closed
hamedhr opened this issue Dec 6, 2018 · 2 comments
Closed

Outdated java example in wiki #6331

hamedhr opened this issue Dec 6, 2018 · 2 comments

Comments

@hamedhr
Copy link

hamedhr commented Dec 6, 2018

Outdated java example in wiki page :

public static void hello(String... names) {
    Observable.from(names).subscribe(new Action1<String>() {

        @Override
        public void call(String s) {
            System.out.println("Hello " + s + "!");
        }

    });
}

Change it to

public static void hello(String... names) {
        Observable.fromArray(names).subscribe(s -> System.out.println("Hello " + s));
    }
@Cuiernao
Copy link

Cuiernao commented Dec 7, 2018

java8......

@ozcanyus
Copy link
Contributor

Hello, I've created a pr about this issue.

akarnokd pushed a commit that referenced this issue Dec 28, 2018
* Update outdated java example in wiki #6331

* update wiki page similar to README

* keep the original example
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants