Well when I compare two Strings in java I use this, could that possibly be the problem?
String one = "iamthwee";
String two = "nonsense";
if (one.equals(two))
{
System.out.println("Both strings are the same");
}
Whereas I can't explicitly write:
if (one == two)
{
System.out.println("Both strings are the same");
}
iamthwee
Posting Expert
5,950 posts since Aug 2005
Reputation Points: 1,543
Solved Threads: 439
i need the program for word frequency by word length
Start a new thread and don't expect someone to give you the code unless you show some effort.
Also explain better you problem.
javaAddict
Nearly a Senior Poster
3,329 posts since Dec 2007
Reputation Points: 1,014
Solved Threads: 448