Skip to main content
Stack Overflow
  1. About
  2. For Teams

Timeline for Java Method Reference (pass method as parameter)

Current License: CC BY-SA 4.0

6 events
when toggle format what by license comment
Oct 10, 2018 at 8:51 comment added daniu @Shifali Good to know :) Feel free to set as answered.
Oct 10, 2018 at 8:11 comment added Shifali Ok, I'll try this solution too. I'm able to understand it and will update you about it. ThankuπŸ˜ƒ
Oct 10, 2018 at 7:59 comment added daniu @Shifali It's not entirely clear to me what exactly you're trying to do. I adjusted the code to "calculate the values" in callmethod.
Oct 10, 2018 at 7:59 history edited daniu CC BY-SA 4.0
deleted 46 characters in body
Oct 10, 2018 at 7:45 comment added Shifali Yes, I get it what you are saying but in my case I'm calculating the value of the arguments to pass in MethodToPass() inside callMethod(). So, I can't do like callMethod(3, c::methodToPass); because for me I'm calculating this value let "3" inside callMethod and want to call methodToPass( with "calculatedValue" as parameter)
Oct 10, 2018 at 6:55 history answered daniu CC BY-SA 4.0

AltStyle γ«γ‚ˆγ£γ¦ε€‰ζ›γ•γ‚ŒγŸγƒšγƒΌγ‚Έ (->γ‚ͺγƒͺγ‚ΈγƒŠγƒ«) /