“using” directive in Java

前端 未结 4 904
醉话见心
醉话见心 2021-01-18 06:55

When the type name is too long, in C# i can create alias like this:

using Dict = System.Collections.Generic.Dictionary;
4条回答
  •  逝去的感伤
    2021-01-18 07:42

    No you can not do like that in java.Here you need to import the packages, if you do not want to import the package then you need to use fully qualified class name.

提交回复
热议问题