tel-ran-de / BE12-Basics

Java Basics Group 12
1 stars 6 forks source link

2020-10-13 Words transformer #6

Open sergeylukichev opened 4 years ago

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

   // length == 5 -> toLowerCase
   // length is even -> to UpperCase
   // etc

    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
  3. Don't forget about unit tests
Stingrayoliv commented 4 years ago

https://github.com/Stingrayoliv/JavaAdvanced/blob/master/src/moduleSecond/lesson01102020/Demo.java