Introduction
Here is the source code for StringDemo.java
Source
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