Java Development
-
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 » -
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 » -
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 » -
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 » -
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 » -
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 » -
Write text to Socket
In this example we shall show you how to write text to a Socket. To write text to a Socket one…
Read More » -
Read text from Socket
With this example we are going to demonstrate how to read text from a Socket. A Socket is an endpoint…
Read More » -
Send HTTP POST request with Socket
This is an example of how to send an HTTP POST request with a Socket. A socket is an endpoint…
Read More » -
Create client Socket with timeout
In this example we shall show you how to create a client Socket with timeout. A client socket is an…
Read More »