if(jText.getText==" "){
}
//it will not Work & a Information is come up that "Comparing String using == ,!=".
So,what I do for this code please give me answer of this Question in java.
if(jText.getText==" "){
}
//it will not Work & a Information is come up that "Comparing String using == ,!=".
So,what I do for this code please give me answer of this Question in java.
lets say s0 ans s1 too String
wrting an instruction like this:
if(s0==s1)
this instruction compares the adress of too object of type java.lang.String s= and s1.
You have to use the equals method or equalsIgnoreCase method as follow:
if("".equals(jText.getText)){
}
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.