Samual Sam has Published 2492 Articles

IntBuffer put() method in Java

Samual Sam

Samual Sam

Updated on 30-Jul-2019 22:30:25

79 Views

The required value can be written at the current position of the buffer and then the current position is incremented using the method put() in the class java.nio.IntBuffer. This method requires a single parameter i.e. the value to be written in the buffer and it returns the buffer in which ... Read More

KeyPairGenerator getInstance() method in Java

Samual Sam

Samual Sam

Updated on 30-Jul-2019 22:30:25

140 Views

A KeyPairGenerator object with the key pairs for a particular algorithm can be obtained using the getInstance() method in the class java.security.KeyPairGenerator. This method requires a single parameter i.e. the algorithm name and it returns the KeyPairGenerator object created.A program that demonstrates this is given as follows −Example Live Demoimport java.security.*; ... Read More

What is a taglib directive in JSP?

Samual Sam

Samual Sam

Updated on 30-Jul-2019 22:30:25

104 Views

The JavaServer Pages API allow you to define custom JSP tags that look like HTML or XML tags and a tag library is a set of user-defined tags that implement custom behavior.The taglib directive declares that your JSP page uses a set of custom tags, identifies the location of the ... Read More

LocalDateTime withDayOfMonth() method in Java

Samual Sam

Samual Sam

Updated on 30-Jul-2019 22:30:25

49 Views

An immutable copy of a LocalDateTime with the day of month altered as required is done using the method withDayOfMonth() in the LocalDateTime class in Java. This method requires a single parameter i.e. the day of month that is to be set in the LocalDateTime and it returns the LocalDateTime ... Read More

How to check if an input string contains a specified substring in JSP?

Samual Sam

Samual Sam

Updated on 30-Jul-2019 22:30:25

2K+ Views

The fn:contains() function determines whether an input string contains a specified substring.SyntaxThe fn:contains() function has the following syntax −boolean contains(java.lang.String, java.lang.String)ExampleFollowing example explains the functionality of fn:contains() function −           Using JSTL Functions     ... Read More

LocalTime until() Method in Java

Samual Sam

Samual Sam

Updated on 30-Jul-2019 22:30:25

4K+ Views

The difference between two LocalTime objects can be obtained using the until() method in the LocalTime class in Java. This method requires two parameters i.e. the end time for the LocalTime object and the Temporal unit. Also, it returns the difference between two LocalTime objects in the Temporal unit specified.A ... Read More

IntBuffer equals() method in Java

Samual Sam

Samual Sam

Updated on 30-Jul-2019 22:30:25

125 Views

The equality of two buffers can be checked using the method equals() in the class java.nio.IntBuffer. Two buffers are equal if they have the same type of elements, the same number of elements and same sequence of elements. The method equals() returns true if the buffers are equal and false ... Read More

I want to create a custom tag in JSP. How to write a custom tag in JSP?

Samual Sam

Samual Sam

Updated on 30-Jul-2019 22:30:25

153 Views

A custom tag is a user-defined JSP language element. When a JSP page containing a custom tag is translated into a servlet, the tag is converted to operations on an object called a tag handler. The Web container then invokes those operations when the JSP page's servlet is executed.JSP tag ... Read More

How to determine if an input string ends with a specified suffix in JSP?

Samual Sam

Samual Sam

Updated on 30-Jul-2019 22:30:25

216 Views

The fn:endsWith() function determines if an input string ends with a specified suffix.SyntaxThe fn:endsWith() function has the following syntax −boolean endsWith(java.lang.String, java.lang.String)ExampleFollowing example explains the functionality of the fn:substring function −           Using JSTL Functions                 ... Read More

Duration plus() method in Java

Samual Sam

Samual Sam

Updated on 30-Jul-2019 22:30:25

136 Views

An immutable copy of a duration where the required duration is added to it can be obtained using the plus() method in the Duration class in Java. This method requires two parameters i.e. the duration to be added and the TemporalUnit of the duration. Also, it returns the duration with ... Read More

Advertisements