Here is my code:
if(Rs.getInt("Number") == 100){
//Do something
}
Rs
is a PreparedStatement
.
Instead of defining the exact number, I want to look for numbers
which start with 1. Maybe there are '110' or '120' ... what should i write in the loop
instead of the operator ==
?