Chandu yadav has Published 1163 Articles

Perform Animation on CSS min-height

Chandu yadav

Chandu yadav

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

248 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

345 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

289 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

Animate CSS right property

Chandu yadav

Chandu yadav

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

236 Views

To implement animation on right property with CSS, you can try to run the following codeExampleLive Demo                    #demo {             position: absolute;             right: 0;             width: 300px;             height: 200px;             background-color: blue;             animation: myanim 5s infinite;          }          @keyframes myanim {             30% {                right: 350px;             }          }                     CSS right property                This is demo text.          

Find minimum element of ArrayList with Java Collections

Chandu yadav

Chandu yadav

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

3K+ 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

8K+ 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 Object Creation of Inherited Class

Chandu yadav

Chandu yadav

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

2K+ Views

In java constructor is something which is responsible for object creation of a particular class.Along with other functions of constructor it also instantiate the properties/instances of its class.In java by default super() method is used as first line of constructor of every class, here the purpose of this method is ... Read More

High-level file operations in Python (shutil)

Chandu yadav

Chandu yadav

Updated on 25-Jun-2020 14:26:52

968 Views

A number of functions for hgh level operations on files and directories have been defined in shutil module of Python’s standard library.copy()This function copies a file to a specified file in same or other directory. First parameter to the function is a string representation of existing file. Second argument is ... Read More

Java program to check occurence of each vowel in String

Chandu yadav

Chandu yadav

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

536 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