java.utilパッケージにはコレクションを表現するクラスが多数あります。配列では要素数が固定になりますから,不定数のオブジェクトを扱うときには便利に使えます。J2SE 5では,Genericsを導入してさらに使いやすく安全になります。 さらに,java.util ...
Enum(列挙型)は、関連する定数の集合を定義するための特別なデータ型。 Enumを使用すると、コードの可読性と保守性が向上するので、他の言語でも広く使用されている。 ただ、言語ごとにEnumの機能が結構異なる・・・ PythonとRustでも結構異なる・・・で ...
When I was writing code regularly in both C++ and Java in the early days of Java, I often missed Java’s (at the time) lack of an enum. Fortunately, when Java finally got its enum, it was worth the ...
TypeScript recently became the fastest growing language on GitHub. Explore the reasons for the shift and what it means for the ...
Most new Java developers quickly learn that they should generally compare Java Strings using String.equals(Object) rather than using ==. This is emphasized and reinforced to new developers repeatedly ...
Community driven content discussing all aspects of software development from DevOps to design patterns. The Java enum, introduced in Java 5, will map to the underlying database without any ...