Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package Uebung;
- interface testen{
- public boolean test(int i);
- }
- public class Test1 {
- public static void main(String[] args) {
- testen test = zahlen -> {
- return (zahlen>=0)? true : false;
- };
- System.out.println(test.test(5));
- System.out.println(test.test(-5));
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement