|
|||||||
|
|
|
![]() |
|
|
Strumenti |
|
|
#1 |
|
Senior Member
Iscritto dal: Oct 2002
Città: nowhere
Messaggi: 2392
|
[JAvA] cercare una stringa in una stringa
Ciao a tutti,qualcumo mi suggerisce il modo per cercare una stringa in una stringa + lunga?Mi spiego meglio io devo implementare un algoritmo di ricerca in un mio piccolo progetto.In pratica data una stringa devo ricercare tutti i campi di un database MySql che la contengono.Come posso fare?
|
|
|
|
|
|
#2 |
|
Member
Iscritto dal: Dec 2003
Messaggi: 217
|
contains
public boolean contains(CharSequence s) Returns true if and only if this string contains the specified sequence of char values. Parameters: s - the sequence to search for Returns: true if this string contains s, false otherwise Throws: NullPointerException - if s is null Since: 1.5 |
|
|
|
|
|
#3 | |
|
Senior Member
Iscritto dal: Oct 2002
Città: nowhere
Messaggi: 2392
|
Quote:
|
|
|
|
|
|
| Strumenti | |
|
|
Tutti gli orari sono GMT +1. Ora sono le: 02:05.



















