This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
The moose likes Java in General and the fly likes String comparison with a percentage in accuracy result Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "String comparison with a percentage in accuracy result" Watch "String comparison with a percentage in accuracy result" New topic
Author

String comparison with a percentage in accuracy result

Orange Tonik
Greenhorn

Joined: Apr 24, 2008
Posts: 2
Hello experts,
Is there a certain library that can provide the functionality of comparing two strings and giving a percentage of their matching.

Regards
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 36599
    
  16
Welcome to the Ranch.

You obviously missed the naming policy on the way in. And Tonik is misspelt.

There probably is, in which case you can find it on Google, but it would be easy to write your own.
Orange Tonik
Greenhorn

Joined: Apr 24, 2008
Posts: 2
There's a naming policy? Plus my real name's Toni Krause so Tonik is my nickname
Vilmantas Baranauskas
Ranch Hand

Joined: Dec 20, 2006
Posts: 89
Not sure if this is what you are looking for but check StringUtils.getLevenshteinDistance from apache's commons-lang.


Author of <a href="http://www.newsinjector.com" target="_blank" rel="nofollow">NewsInjector</a>
Amit Ghorpade
Bartender

Joined: Jun 06, 2007
Posts: 2713
    
    5

Hi Orange Tonik, welcome to Javaranch,
and yes there is a naming policy you'll find it here.
No matter you use your nickname, but your name should sound real


Hope this helps


SCJP, SCWCD.
|Asking Good Questions|
fred rosenberger
lowercase baba
Bartender

Joined: Oct 02, 2003
Posts: 10929
    
  12

when you registered, right above the line where you entered your display name, was the line:
Publicly Displayed Name (This name must conform to our naming policy):
That would seem to imply we have a naming policy.

This policy is strictly enforced. You can always go to this thread to discuss the policy, but i'd advise reading the whole thing first to avoid re-hashing any argument.


There are only two hard things in computer science: cache invalidation, naming things, and off-by-one errors
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: String comparison with a percentage in accuracy result
 
Similar Threads
Near to the Exam date
thanks to you all
passed SCWCD: 94%
I'm 'MAD' !!!
How do i convert hh:mm:ss to percentage