core java
-
math
Find minimum of numbers with Math min
This is an example of how to find the minimum of numbers using the Math Class. The class Math contains…
Read More » -
math
Find the maximum of numbers with Math.max in Java
In this example, we shall show you how to find the maximum numbers in Java, using the Math Class and…
Read More » -
math
Generate random numbers with Math random
With this example we are going to demonstrate how to generate random numbers using random() method of Math Class. The…
Read More » -
math
Calculate square root in Java with Math sqrt
This is an example of how to calculate the square root in Java, using the sqrt(double a) method of Math Class. The class Math…
Read More » -
math
Calculate power with Math pow
In this example we shall show you how to calculate the power of a number using the pow(double a, double…
Read More » -
Authenticator
Access password protected URL with Authenticator
With this example we are going to demonstrate how to access a password protected URL using the Authenticator Class. The…
Read More » -
URL
Read text from URL
This is an example of how to parse text from a URL. The URL Class is used to represent a…
Read More » -
URL
Parse URL example
In this example we shall show you how to parse a URL. Class URL represents a Uniform Resource Locator, a…
Read More » -
URL
Convert between URL and URI
With this example we are going to demonstrate how to convert between a URL and a URI. Class URL represents…
Read More » -
ServerSocket
Create Server Socket
This is an example of how to create a ServerSocket. A server socket waits for requests to come in over…
Read More »