Home >Java >JavaBase >How to use java code

How to use java code

angryTom
angryTomOriginal
2019-11-15 16:01:264782browse

How to use java code

How to use java code

The java code we downloaded from the Internet can be imported and run using eclipse. Specific operations As follows:

1. Open eclipse and click File->import->general->existing projects into workspace

2. Then select the program directory and import.

3. Click the run button on eclipse to run our java code.

Note: You may encounter problems with Chinese garbled characters after importing. You only need to change the encoding in the project's properties->Resources. Generally, UTF-8 is changed to GBK or GBK is changed to UTF- 8 will solve it.

php Chinese website, a large number of free Java introductory tutorials, welcome to learn online!

The above is the detailed content of How to use java code. 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