fork(16) download
  1. import java.util.*;
  2. import java.lang.*;
  3. import java.io.*;
  4.  
  5. class Ideone
  6. {
  7. public static void main (String[] args) throws java.lang.Exception
  8. {
  9. String firstString = "Taki";
  10. String secondString = "TAKI";
  11. System.out.println (firstString.equalsIgnoreCase(secondString)); //prints true
  12. Locale locale = Locale.forLanguageTag("tr-TR");
  13. System.out.println(firstString.toLowerCase(locale).equals(secondString.toLowerCase(locale))); //prints false
  14. }
  15. }
Success #stdin #stdout 0.11s 320576KB
stdin
Standard input is empty
stdout
true
false