Using uses declarations to import a type

You can add uses declarations to your Gosu type to import types so that you can refer to them later without specifying the fully qualified name. For example, by including the following declaration, you can refer to the FileInputStream class as FileInputStream, rather than java.io.FileInputStream:

uses java.io.FileInputStream

All uses declarations must be at the top of the class, not within a Gosu method definition.

See also