Answer the question
In order to leave comments, you need to log in
What is the value of an empty String in Java?
Good!
Even I can’t find what is stored in an empty String? String str = "";
Just need to check if String is empty
Answer the question
In order to leave comments, you need to log in
Oddly enough, an empty string stores an empty string in itself .
And indeed, there is a special method
if(string.isEmpty()){
//code
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question