Pradnya Markale

Greenhorn
+ Follow
since Oct 31, 2006
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Pradnya Markale

Just a suggestion -
Try it out with DATETIME in SQL Server and java.sql.Timestamp in Java once.
Hi Kavitha,
KJ is right. Whenever you want to compare the contents use equals() method.
When you use == operator, you are comparing objects, not the contents.
In you example "hello".trim() and "hello" are two different objects, so the output is false.

Thanks,
Pradnya.