aspose file tools
The moose likes Java in General and the fly likes comparsion of two strings without ignoring usecases and spaces Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » Java in General
Reply Bookmark "comparsion of two strings without ignoring usecases and spaces" Watch "comparsion of two strings without ignoring usecases and spaces" New topic
Author

comparsion of two strings without ignoring usecases and spaces

Miss Zara
Greenhorn

Joined: Jan 07, 2005
Posts: 2
hello frnds....

i m facing problem in this code....i want to compare the strings...for entering only unique values

String uniquenessCheck() {
LinkedHashMap instances = getInstanceList();

if (instances != null) {
Iterator instanceIter = instances.values().iterator();

while (instanceIter.hasNext()) {
TVCreative thisCreative = (TVCreative) instanceIter.next();

String compareTitle = getCreativeTitle().trim().toLowerCase();

if (thisCreative.getCreativeTitle().toLowerCase().equals(compareTitle)
return "creativeTitle";
}
}

return null;
}
Vijayendra V Rao
Ranch Hand

Joined: Jul 04, 2004
Posts: 195
Are you able to compile this piece of code in the first place? If yes, then tell us the actual problem that you are facing.


Vijayendra <br /> <br />"The harder you train in peace, the lesser you bleed in war"
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: comparsion of two strings without ignoring usecases and spaces
 
Similar Threads
to Lower/ upper case....
Exception in JSTL with Custom action tag
about criteriaFind
== test of String literals
null check in Iterator