Advertisement
sergAccount

Untitled

Feb 6th, 2021
794
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.44 KB | None | 0 0
  1. /*
  2.  * To change this license header, choose License Headers in Project Properties.
  3.  * To change this template file, choose Tools | Templates
  4.  * and open the template in the editor.
  5.  */
  6. package com.mycompany.app9;
  7.  
  8. import java.util.function.Predicate;
  9.  
  10. /**
  11.  *
  12.  * @author Admin
  13.  */
  14. public class MyCheck implements Predicate<String>{
  15.  
  16.     @Override
  17.     public boolean test(String t) {
  18.        return t.startsWith("O");
  19.     }    
  20. }
  21.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement