ciao a tutti,
dovrei tirare fuori da un db delle stringhe e quindi farci delle analisi.
allora ho implementato questo codice
codice:
while (result.next()){
				tweet=result.getString("c_segmented_text");
				if(tweet.contains("RT @")){
					tweet.replace("#BOAT#","");
					tweet.replace("#EOAT#","");
					System.out.println(tweet);
				}
			}
pero a console mi compare il seguente output
codice:
RT @riethmayer: hahaha RT @gimboland: RT @agilenature: LOL: Berlin is wonderful, but Dad, I am a bit ashamed.. [pic] http://i.imgur.com/wmkeF.gif
#EOAT#
#BOAT#
RT @riethmayer: hahaha RT @gimboland: RT @agilenature: LOL: Berlin is wonderful, but Dad, I am a bit ashamed.. [pic] http://i.imgur.com/wmkeF.gif
#EOAT#
....
e quindi non mi tira via quello che gli chiedo invocando la replace. perche?