Click here to Skip to main content
15,563,054 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hey guys

I'm using java-code for my current project, but I can't go further. Is there any commant, to compare two strings witch case insensitive?

Example:

I got this "TestParameter" but it should also work if i had this "testparameter" or "TESTPARAMETER" or "TeStPaRaMeTeR" and so on..


I'm glad about every answer.



Greetings
epanjohura
Posted

haha I got it =)

for those, who need also this piece of code: .equalsIgnoreCase()


Greetings
epanjohura
 
Share this answer
 
string1.compareToIgnoreCase(string2)
 
Share this answer
 
Comments
epanjohura 26-Apr-12 2:04am    
thank you =)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900