I'm building an android app for the first time using java. (I am used to Xamarin with C#)

In C#, when you set a button and subscribe to it's click event, you can simply use a lambda and do this :

```
myButton.Click += (s,e) => { DoSomething();};

```

But in Java, it seems like the fastest way to go is like this :

```
myButton.setOnClickListener(new View.OnClickListener() {

        public void onClick(View v) {

        DoSomething();

        }
     });

```

Since I will work a lot with buttons and events, I want to know if there is a faster way to do it in Java. Something closer to what I do in C#.