You could try converting double nN
to a string and see if your String line
contains it with if statement:
if (line.contains(Double.toString(nN))) {
code...
}
solved Check if certain numbers are in a string
You could try converting double nN
to a string and see if your String line
contains it with if statement:
if (line.contains(Double.toString(nN))) {
code...
}
solved Check if certain numbers are in a string