Search Results for: java 8
-
lang
MethodHandle example
public class MethodAccessExampleWithArgs { private final int i; public MethodAccessExampleWithArgs(int i_) { i = i_; } private void bar(int j,…
Read More » -
math
Find natural logarithm value of a number
This is an example of how to find the natural logarithm value of a number, using the log(double a) method…
Read More » -
math
Find ceiling value of a number
In this example we shall show you how to find the ceiling value of a number, using the Math Class.…
Read More » -
math
Using Math Constants
In this example we shall show you how to get constant numbers using the Math Class. Apart from the methods for…
Read More » -
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
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 » -
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 » -
Socket
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 »