I\'m retrieving string data from my sqlitedatabase and compare in to my local variable. But its not working. It goes like this codes below.
String hole1 = \"
You shouldn't use == to compare strings. Use string1.equals(string2) instead. Using == compares if the reference to each string is equal whereas .equals() compares the values of the strings
==
string1.equals(string2)
.equals()
String comp like this would be better
().getSelectedItem().toString().equals(hole);