tel-ran-de / BE10-Basic

Basic Java Group 10
1 stars 8 forks source link

HW 2020-05-29 Functional Interfaces #23

Open sergeylukichev opened 4 years ago

sergeylukichev commented 4 years ago
    //"abc defG ikl" -> "ABC defG IKL"
    // length == 3 -> toUpperCase

    public static String transform(String sentence) {

        return null;
    }

Implement using functional interfaces in Java

  1. Choose functional interfaces and extend method signature
  2. Adjust logic ni the method to use these functional interfaces
sergeylukichev commented 4 years ago

String transform(String sentence, Predicate<String> p, Function<String, String> f)