Tutorial by Examples

SimpleDateFormatter is great in a pinch, but like the name suggests it doesn't scale well. If you hard-code "MM/dd/yyyy" all over your application your international users won't be happy. Let Java do the work for you Use the static methods in DateFormat to retrieve the right formatting ...
Compare two Strings ignoring case: "School".equalsIgnoreCase("school"); // true Don't use text1.toLowerCase().equals(text2.toLowerCase()); Languages have different rules for converting upper and lower case. A 'I' would be converted to 'i' in English. But in Turkish a 'I' ...
The java.util.Locale class is used to represent a "geographical, political or cultural" region to localize a given text, number, date or operation to. A Locale object may thus contain a country, region, language, and also a variant of a language, for instance a dialect spoken in a certain ...

Page 1 of 1