Path: csiph.com!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Cecil Westerhof Newsgroups: comp.lang.java.programmer Subject: Lambda function that takes no parameter and returns String Date: Sat, 24 Jun 2017 03:56:12 +0200 Organization: Decebal Computing Lines: 8 Message-ID: <87wp82m9mr.fsf@munus.decebal.nl> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: mx02.eternal-september.org; posting-host="756f748cd053f5b8dbb6567eb1acb1d6"; logging-data="12911"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/2Bjjpg73n/6/q+Evf8mSLqD0fB5oGbBI=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) X-Homepage: http://www.decebal.nl/ Cancel-Lock: sha1:4dOOnYmUZb3qD0vGL9TvuUdE6FE= sha1:yOcGF/OVjHTGht+ruHkwQVeCxNs= Xref: csiph.com comp.lang.java.programmer:36707 I want to start with lambda functions. How would I write a lambda function that does not take a parameter and returns a String? And how do I ascribe that lambda function to a variable? -- Cecil Westerhof Senior Software Engineer LinkedIn: http://www.linkedin.com/in/cecilwesterhof