Skip to content
Advertisement

Is there a limit of a maximum of 7 steps for “Function” “andThen()” “apply()” of Java? [closed]

I have the following code –

JavaScript
JavaScript

gives me output –

JavaScript

But,

JavaScript

Gives me output –

JavaScript

So, I am wondering if there is a maximum limit of 7 steps here.

I am using Open JDK 11

Advertisement

Answer

No. Look at this:

JavaScript

Notice the assignment operator = instead of append +.

Change it to:

JavaScript

and it should show desired results.

Why would Java randomly limit it to 7 steps??

User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement