8 May 2009 at 12:35 #1 Energize Energize Caporegime Joined 12 Mar 2004 Posts 29,962 Location England Is there a method in java that will allow me to search for a specified word within a string?
8 May 2009 at 12:42 #2 brainchylde brainchylde Associate Joined 5 Feb 2009 Posts 424 Yes. yourString.Contains(stringtosearchfor)
8 May 2009 at 14:01 #3 Energize Energize Caporegime OP Joined 12 Mar 2004 Posts 29,962 Location England I looked at that but the api says it takes a CharSequence as an argument.
8 May 2009 at 14:15 #4 Haircut Haircut Soldato Joined 18 Oct 2002 Posts 3,926 Location SW London CharSequence is an interface, which is implemented by String so you can safely pass this in to the method.
CharSequence is an interface, which is implemented by String so you can safely pass this in to the method.
8 May 2009 at 15:09 #5 Dj_Jestar Dj_Jestar Caporegime Joined 18 Oct 2002 Posts 29,493 Location Back in East London A string is a sequence of chars