mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-18 13:35:50 +00:00
Deleted the package which has java 8 tutorial classes
This commit is contained in:
parent
1d1b37e5df
commit
330636a6a2
4 changed files with 0 additions and 48 deletions
|
@ -1,17 +0,0 @@
|
|||
package io.javabrains;
|
||||
|
||||
public class Greeter {
|
||||
public void greet(Greeting greeting) {
|
||||
greeting.perform();
|
||||
}
|
||||
|
||||
public static void main(String[] args) {
|
||||
Greeter greeter = new Greeter();
|
||||
HelloWorldGreetings helloWorldGreeting = new HelloWorldGreetings();
|
||||
greeter.greet(helloWorldGreeting);
|
||||
|
||||
Greeting myLambdaFunction = ()-> System.out.print("HelloWorld");
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
package io.javabrains;
|
||||
|
||||
public interface Greeting {
|
||||
public void perform();
|
||||
}
|
|
@ -1,10 +0,0 @@
|
|||
package io.javabrains;
|
||||
|
||||
public class HelloWorldGreetings implements Greeting {
|
||||
|
||||
@Override
|
||||
public void perform() {
|
||||
System.out.print("HelloWorld!");
|
||||
}
|
||||
|
||||
}
|
|
@ -1,16 +0,0 @@
|
|||
package io.javabrains;
|
||||
|
||||
public class TypeInferenceExample {
|
||||
|
||||
public static void main(String[] args) {
|
||||
StringLengthLambda myLambda = s -> s.length();
|
||||
System.out.print(myLambda.getLength("Hello Lambda!"));
|
||||
}
|
||||
|
||||
|
||||
interface StringLengthLambda{
|
||||
int getLength(String s);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in a new issue