Suggest a feature
×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: Java
Posted by: Jenya Mia
Added: Mar 19, 2019 12:34 PM
Views: 6
Tags: java string
  1. if(Optional.ofNullable(" .").map(s -> !s.trim().isEmpty()).orElse(Boolean.FALSE))
  2.       System.out.println("Not Blank !");
  3.     else
  4.       System.out.println("Blank !");