Java-Rules
Learn Java By Rules And From The Errors
Spring
Home
Java-8
Spring
Hibernate
keywords
servlet
jdbc
Web Services
Ajax
concepts
Wednesday, May 15, 2019
Java8 Print Hello
public class Java8PrintHello {
public static void main(String[] args) {
SayHello wish = name -> "Hello "+name;
System.out.println(wish.sayHello("Sai Kumar"));
}
}
@FunctionalInterface
interface SayHello{
public String sayHello(String name);
}
Newer Post
Older Post
Home