Arjun Thakur has Published 1025 Articles

how can I design custom toast message in Android?

Arjun Thakur

Arjun Thakur

Updated on 26-Jun-2020 05:26:43

1K+ Views

Before getting into Custom Toast, we should know about what is toast. Toast is used to display message on current screen for sometime. After some time it doing to disappear. In this example we can learn how to customize toast message.This example demonstrate about how to create custom toast message ... Read More

Format floating point with Java MessageFormat

Arjun Thakur

Arjun Thakur

Updated on 25-Jun-2020 15:11:20

1K+ Views

To format message with floating point fillers in Java, we use the MessageFormat class. The MessageFormat class gives us a way to produce concatenated messages which are not dependent on the language. The MessageFormat class extends the Serializable and Cloneable interfaces.Declaration −The java.text.MessageFormat class is declared as follows −public class ... Read More

Perform Animation on CSS perspective property

Arjun Thakur

Arjun Thakur

Updated on 25-Jun-2020 15:00:07

137 Views

To implement animation on perspective property with CSS, you can try to run the following codeExampleLive Demo                    #demo1 {             position: relative;               margin-left: 120px;       ... Read More

Perform Animation on CSS margin-top

Arjun Thakur

Arjun Thakur

Updated on 25-Jun-2020 14:46:44

1K+ Views

To implement animation on margin-top property with CSS, you can try to run the following codeExampleLive Demo                    div {             background-color: orange;             animation: myanim 4s infinite;             color: white;          }          @keyframes myanim {             30% {                margin-top: 30px;             }          }                     Heading One                This is demo text.          

Java Program to implement Binary Search on double array

Arjun Thakur

Arjun Thakur

Updated on 25-Jun-2020 14:45:34

333 Views

Binary search on a double array can be implemented by using the methodjava.util.Arrays.binarySearch(). This method returns the index of the required double element if it is available in the array, otherwise it returns (-(insertion point) - 1) where the insertion point is the position at which the element would be ... Read More

CSS rest-before Speech Media property

Arjun Thakur

Arjun Thakur

Updated on 25-Jun-2020 14:44:08

127 Views

The CSS rest-after property is useful for speech media to set pause before an element.Let us see an example of rest-before speech media propertyh1 {    rest-before: 15ms; }The time sets the pause in milliseconds.

How to schedule tasks in Java to run for repeated fixed-delay execution, beginning after the specified delay

Arjun Thakur

Arjun Thakur

Updated on 25-Jun-2020 14:43:41

1K+ Views

One of the methods in the Timer class is the void schedule(TimerTask task, long delay, long period) method. This method schedules tasks for repeated fixed-delay execution, beginning after the specified delay.In fixed-delay execution, each execution is scheduled with respect to the original execution time of the preceding execution. If an ... Read More

Perform Animation on CSS max-width

Arjun Thakur

Arjun Thakur

Updated on 25-Jun-2020 14:40:38

1K+ Views

To implement animation on max-width property with CSS, you can try to run the following codeExampleLive Demo                    div {             overflow: auto;             background-color: blue;         ... Read More

Local inner class in Java

Arjun Thakur

Arjun Thakur

Updated on 25-Jun-2020 14:38:35

3K+ Views

In Java, just like methods, variables of a class too can have another class as its member. Writing a class within another is allowed in Java. The class written within is called the nested class, and the class that holds the inner class is called the outer class.SyntaxFollowing is the ... Read More

Copy Elements of One ArrayList to Another ArrayList with Java Collections Class

Arjun Thakur

Arjun Thakur

Updated on 25-Jun-2020 14:38:08

8K+ Views

In order to copy elements of ArrayList to another ArrayList, we use the Collections.copy() method. It is used to copy all elements of a collection into another.Declaration −The java.util.Collections.copy() method is declared as follows −public static void copy(List

Advertisements