package com.example.test; public class Test { //<-publicで書いたクラスはパッケージ外に公開されている ・・・ }
//importを使う場合 import com.example.test; Test t = new Test(); //パッケージを直接指定する場合 com.example.test.Test = new com.example.test.Test();