79805719

Date: 2025-10-31 11:25:25
Score: 1
Natty:
Report link

Java isn’t missing any grammar rules. The Hungarian collation in OpenJDK follows the Unicode/CLDR standard, where accented letters (like É) are treated as secondary forms of their base letter (E). Because of this, the traditional Hungarian dictionary order (A < Á < B < C < Cs … E < É) is not applied by default.

No built-in Java Collator implements the full Hungarian dictionary alphabet.

If you need the real Hungarian dictionary order, you must use a tailored collation. For example, with ICU4J:

Collator coll = Collator.getInstance(new ULocale("hu@collation=dictionary"));

This collator follows the correct Hungarian dictionary rules, including treating E and É as separate letters.

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Siripireddy Giri