Home  >  Article  >  Java  >  How to modify package name in Java

How to modify package name in Java

(*-*)浩
(*-*)浩Original
2019-05-05 13:39:4622585browse

How to modify package name in Java

This article will explain how to simply modify the package name, but if the package has many levels and many references and associations, then this is for reference only.

If you want to know more complete and updated recommendations: Java tutorial

How to modify the package name in java:

The first step is to right-click the package you want to rename and select [Refactor] → [Rename].

How to modify package name in Java

The second step is to change the package name in the [New name] text box, check Update references, Rename subpackages, and click [ok]

How to modify package name in Java

The third step, if a pop-up window appears midway, click [continue], then you can see that the package name in the package explorer has changed. .

How to modify package name in Java

The above is the detailed content of How to modify package name in Java. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Previous article:What is Java WebNext article:What is Java Web