ここまで説明したimport文は、「単一型インポート」と呼ばれるもので、1つのクラスやインターフェイスをインポートする場合に使うものでした。同じパッケージに含まれる複数のクラスをインポートしたい場合には、「オンデマンドインポート」を使います。
Javaを使ってシステム開発を進めていくと、標準で用意されている便利な機能(標準ライブラリ)や、外部の便利なプログラム(外部ライブラリ)を利用する機会が頻繁に訪れます。 しかし、これらのクラスをプログラム内で呼び出そうとしたとき、ある壁 ...
プログラミング言語で記載した処理はファイルに残して実行できるようにする。ここでは正しいファイルの作成法から実行 ...
In a previous Java 101 tutorial, you learned how to better organize your code by declaring reference types (also known as classes and interfaces) as members of other reference types and blocks. I also ...
As an alternative to rewriting the same code, many software development environments provide a library tool that organizes frequently used code. Once developers finish debugging some reusable code, ...
AWTの改良版であるSwingは、プラットホームを選ばず、かつユーザーインターフェイスの手軽な開発を実現する技術として利用されています。しかし、Swingだけでは実現できない機能もあり、この場合はAWTのパッケージである「java.awt」をインポートする必要が ...
OpenJDK 23 has been released on a six-monthly cycle. Like its predecessor, the release brings twelve Java Enhancement Proposals (JEP), most of which are in the preview phase. However, string templates ...
A monthly overview of things you need to know as an architect or aspiring architect. Unlock the full InfoQ experience by logging in! Stay updated with your favorite authors and topics, engage with ...
一部の結果でアクセス不可の可能性があるため、非表示になっています。
アクセス不可の結果を表示する