Home  >  Article  >  Java  >  How to use java class library

How to use java class library

王林
王林Original
2020-02-03 10:14:573104browse

How to use java class library

Take using the Math class library to write a program for finding arithmetic square roots as an example:

First open the official Java online API document

How to use java class library

View the usage of the sqrt function of the Math class library in the Java API documentation

(Recommended learning video: java video tutorial)

How to use java class library

Open Notepad, enter the following code, and save it as Sqrt.java

How to use java class library

Compile and run Sqrt.java, and view the running results

How to use java class library

Recommended related articles and tutorials: java introductory tutorial

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