Skip to content Skip to sidebar Skip to footer

Unable To Insert A Right Arrow In Android Studio Java File

I am learning android studio. There is a right arrow in the tutorial that I can't duplicate via keyboard or shortcuts. The arrow is next the fab.setOnClickListener line #20. See

Solution 1:

This is a feature introduced in Java 8. If you are using Android Studio 3.0 or later, it should work for you.

The name of the feature is Lambda Expressions, you should look them up and read up on them if you plan to use them.

You can use the -> combination to use them.

If your Android Studio is older than 3.0 you should update.. or use a library called retrolambda (tho you really should update)

Post a Comment for "Unable To Insert A Right Arrow In Android Studio Java File"