Commit 026772be authored by Christian P. MOMON's avatar Christian P. MOMON
Browse files

Fixed last new methods.

parent 8d35dd6e
......@@ -117,7 +117,31 @@ public class StringsUtils
{
boolean result;
result = new StringList(strings).contains(token);
boolean ended = false;
int index = 0;
result = false;
while (!ended)
{
if (index < strings.length)
{
String current = strings[index];
if (StringUtils.contains(token, current))
{
ended = true;
result = true;
}
else
{
index += 1;
}
}
else
{
ended = true;
result = false;
}
}
//
return result;
......@@ -136,7 +160,31 @@ public class StringsUtils
{
boolean result;
result = new StringList(strings).containsIgnoreCase(token);
boolean ended = false;
int index = 0;
result = false;
while (!ended)
{
if (index < strings.length)
{
String current = strings[index];
if (StringUtils.containsIgnoreCase(token, current))
{
ended = true;
result = true;
}
else
{
index += 1;
}
}
else
{
ended = true;
result = false;
}
}
//
return result;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment