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

Timeline for Java8: Lambda expression not expected here

Current License: CC BY-SA 3.0

14 events
when toggle format what by license comment
May 23, 2017 at 14:38 vote accept Babaprakash Dabbara
May 22, 2017 at 16:15 comment added Holger @Raja Anbazhagan: Your comments are not helpful in any way. If you understand what the OP wants to do, please create an answer explaining to the OP, how to achieve that goal.
May 22, 2017 at 14:37 comment added Raja Anbazhagan @Holger Oh sorry I forgot i'm on internet.
May 22, 2017 at 13:35 comment added Holger @Raja Anbazhagan: if you want to "print the result of Integer.compare()", you just write Integer.compare(...). It’s not clear what "using lambda expression" should mean in this context or what inserting () -> into the code should achieve. The goal you described, was already achieved before inserting () -> .
May 20, 2017 at 9:20 comment added Raja Anbazhagan He's trying to print the result of Integer.compare() using lambda expression. It's clear and I'm not really sure why it's hard to understand. He even understands he's wrong. but wants to know why? Which is good. Please dont shut doors for people without understanding.
May 20, 2017 at 9:11 comment added Misha @RajaAnbazhagan we cannot possibly help without knowing what the code is supposed to do.
May 20, 2017 at 7:24 comment added Raja Anbazhagan @JoeC As he said, He's learning it and lets assume he has reasons to play with this piece of code.
May 20, 2017 at 6:41 answer added holi-java timeline score: 2
May 20, 2017 at 6:40 history edited Arpit Patel CC BY-SA 3.0
code formatted
May 20, 2017 at 6:25 comment added Joe C Can you clarify exactly what you're trying to print here? As @Misha said, printing a lambda expression makes no sense whatsoever.
May 20, 2017 at 6:20 answer added Jean-Baptiste Yunès timeline score: 0
May 20, 2017 at 5:59 comment added Misha Why are you trying to add (concatenate) a string and a lambda expression? What are you trying to do? The compiler message is pretty clear.
May 20, 2017 at 5:53 review First posts
May 20, 2017 at 6:40
May 20, 2017 at 5:53 history asked Babaprakash Dabbara CC BY-SA 3.0

AltStyle によって変換されたページ (->オリジナル) /