Chandu yadav has Published 1091 Articles

Animate CSS padding-left property

Chandu yadav

Chandu yadav

Updated on 25-Jun-2020 14:56:10

472 Views

To implement animation on padding-left property with CSS, you can try to run the following codeExampleLive Demo                    div {             width: 350px;             height: 150px;             outline: 3px solid orange;             animation: myanim 3s infinite;          }          @keyframes myanim {             50% {                padding-left: 20px;             }          }                     CSS padding-left property          

Check if the String contains only unicode letters, digits or space in Java

Chandu yadav

Chandu yadav

Updated on 25-Jun-2020 14:47:31

900 Views

To check if a given String contains only unicode letters, digits or space, we use the isLetterOrDigit() and charAt() methods with decision making statements.The isLetterOrDigit(char ch) method determines whether the specific character (Unicode ch) is either a letter or a digit. It returns a boolean value, either true or false.Declaration ... Read More

Perform Animation on CSS min-width

Chandu yadav

Chandu yadav

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

289 Views

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

Perform Animation on CSS min-height

Chandu yadav

Chandu yadav

Updated on 25-Jun-2020 14:42:24

316 Views

To implement animation on min-height property with CSS, you can try to run the following codeExampleLive Demo                    div {             overflow: auto;             width: 350px;         ... Read More

LinkedList in Java

Chandu yadav

Chandu yadav

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

484 Views

The LinkedList class extends AbstractSequentialList and implements the List interface. It provides a linked-list data structure.Following are the constructors supported by the LinkedList class.Sr.No.Constructor & Description1LinkedList( )This constructor builds an empty linked list.2LinkedList(Collection c)This constructor builds a linked list that is initialized with the elements of the collection c.Apart from ... Read More

How to copy elements of ArrayList to Java Vector

Chandu yadav

Chandu yadav

Updated on 25-Jun-2020 14:39:50

444 Views

In order to copy elements of ArrayList to Java Vector, 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

Find minimum element of ArrayList with Java Collections

Chandu yadav

Chandu yadav

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

4K+ Views

In order to compute minimum element of ArrayList with Java Collections, we use the Collections.min() method. The java.util.Collections.min() returns the minimum element of the given collection. All elements must be mutually comparable and implement the comparable interface. They shouldn’t throw a ClassCastException.Declaration −The Collections.min() method is declared as follows −public ... Read More

Replace All Elements Of ArrayList with with Java Collections

Chandu yadav

Chandu yadav

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

2K+ Views

In order to replace all elements of ArrayList with Java Collections, we use the Collections.fill() method. The static void fill(List list, Object element) method replaces all elements in the list with the specified element in the argument.Declaration −The java.util.Collections.fill() method is declared as follows −public static void fill(ListRead More

Swap elements of ArrayList with Java collections

Chandu yadav

Chandu yadav

Updated on 25-Jun-2020 14:31:53

10K+ Views

In order to swap elements of ArrayList with Java collections, we need to use the Collections.swap() method. It swaps the elements at the specified positions in the list.Declaration −The java.util.Collections.swap() method is declared as follows −public static void swap(List list, int i, int j)where i is the index of ... Read More

Java program to check occurence of each vowel in String

Chandu yadav

Chandu yadav

Updated on 25-Jun-2020 14:16:42

745 Views

To count occurence of vowels in a string again use Map utility of java as used in calculating occurence of each character in string.Put each vowel as key in Map and put initial value as 1 for each key.Now compare each character with key of map if a character matches ... Read More

Advertisements