sources68 the directory containing the programming examples, source code and programming guide online
public class StringDemo { public static void main(String[] args) { String myString = ""; if (myString.isEmpty()) { System.out.println("Empty"); } else { System.out.println("Not empty"); } } } //Empty
No comments:
Post a Comment