Breaking News: Grepper is joining You.com. Read the official announcement!
Check it out

private static void calcola(int i , function<integer , integer>fn){ int r = 0 ; for (int j = i ; j>0 ; j--) r = fn.apply(r); System.out.println(r); } calcola (9 , (p) -> { return p + 1;});

Splendid Sheep answered on July 6, 2021 Popularity 1/10 Helpfulness 1/10

Contents


More Related Answers

  • public class MyClass { public static void main(String args[]) { int x=10; int y=25; int z=x+y; System.out.println("Sum of x+y = " + z); } kkk }
  • Predict the output of the given code: void method2(char c) { System.out.println( (int) c); } What will be the output of the given code snippet if i) if 'x' is passed to c i) if ‘0’ is passed to c
  • public class Main { public static void main(String[] args) { double num1 = 5; int num2 = 10; System.out.println("The sum of " + num1 + " and " + num2 + " is " + (num1 + num2)); } }

  • private static void calcola(int i , function<integer , integer>fn){ int r = 0 ; for (int j = i ; j>0 ; j--) r = fn.apply(r); System.out.println(r); } calcola (9 , (p) -> { return p + 1;});

    0
    Popularity 1/10 Helpfulness 1/10 Language java
    Source: Grepper
    Link to this answer
    Share Copy Link
    Contributed on Jul 06 2021
    Splendid Sheep
    0 Answers  Avg Quality 2/10


    X

    Continue with Google

    By continuing, I agree that I have read and agree to Greppers's Terms of Service and Privacy Policy.
    X
    Grepper Account Login Required

    Oops, You will need to install Grepper and log-in to perform this action.