Java Silver取得を目指して、毎日コツコツ勉強中です。 このnoteでは、学んだことを整理して記録しています。 同じように勉強している方の参考になったらうれしいです! 引き続き、黒本の模擬試験を解いています。 今回の主題はすごくはっとしました!
この記事の要約: Javaの組み込みサポートが提供されるStringクラスは不変(immutable)であり、その操作と、StringBuilderによる可変な文字列操作のメカニズムを解説します。文字列の内容比較(equals)とオブジェクト同一性比較(==)の重要な違いを明確にします ...
Download the source code for example applications in this tutorial. Created by Jeff Friesen. We’ll look at each of these methods and how you can use them to perform special tasks in the context of ...
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 ...
It's not terribly clean, but you could use indexOf() and check if it returns -1. Better than breaking out a loop.
前回はUMLのデータ型とJavaのマッピングについて概観しました。その結果Javaへのマッピングのために、値を表現するオブジェクトであるバリューオブジェクトを導入する必要があることが分かりました。今回は、このバリューオブジェクトをJavaで実装する ...
一部の結果でアクセス不可の可能性があるため、非表示になっています。
アクセス不可の結果を表示する