Ankith Reddy has Published 1070 Articles

Animate CSS order property

Ankith Reddy

Ankith Reddy

Updated on 25-Jun-2020 14:49:22

1K+ Views

To implement animation on order property with CSS, you can try to run the following codeExampleLive Demo                    #demo1 {             width: 600px;             height: 180px;             display: flex;          }          #inner {             animation: myanim 3s infinite;          }          #demo1 div {             width: 110px;             height: 180px;          }          @keyframes myanim {             30% {                order: 4;             }          }                     CSS order property                                                                            

Animate transform-origin property with CSS Animation

Ankith Reddy

Ankith Reddy

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

817 Views

To implement animation on the transform-origin property with CSS, you can try to run the following codeExampleLive Demo                    #demo1 {             position: relative;             height: 300px;       ... Read More

CSS voice-balance Speech Media property

Ankith Reddy

Ankith Reddy

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

103 Views

Use the voice-balance property to set whether the spoken voice is from the left or right, etc.The following is a syntax to set the volume from left or right or centervoice-balance: left | center | rightLet us see an example to implement the voice-balance speech media propertyp {    voice-balance: right; }

Dump the content of an array in Java

Ankith Reddy

Ankith Reddy

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

238 Views

An array can be easily printed by using the method java.util.Arrays.toString() in Java. This method returns a string representation of the array contents that is enclosed in square brackets. If the array is null, then this method returns null.A program that demonstrates this is given as follows −Example Live Demoimport java.util.Arrays; ... Read More

CSS voice-volume Speech Media property

Ankith Reddy

Ankith Reddy

Updated on 25-Jun-2020 14:36:15

137 Views

Adjust the relative volume level using the voice-volume CSS property.The following is the syntax:voice-volume: [x-soft | soft | medium | loud | x-loud]The following is a code snippet for the voice-volume speech media property:p {    voice-volume: soft; }You can also set the volume in decibalsp {    voice-volume: 2dB; ... Read More

Compare two short arrays in a single line in Java

Ankith Reddy

Ankith Reddy

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

243 Views

Two short arrays can be compared in Java using the java.util.Arrays.equals() method. This method returns true if the arrays are equal and false otherwise. The two arrays are equal if they contain the same number of elements in the same order.A program that compares two short arrays using the Arrays.equals() ... Read More

Reverse order of all elements of ArrayList with Java Collections

Ankith Reddy

Ankith Reddy

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

2K+ Views

In order to reverse order of all elements of ArrayList with Java Collections, we use the Collections.reverse() method.Declaration −The java.util.Collections.reverse method is declared as follows −public static void reverse(List list)Let us see a program to reverse order of all elements of ArrayList with Java Collections −Example Live Demoimport java.util.*; public class ... Read More

Java program to convert float decimal to Octal number

Ankith Reddy

Ankith Reddy

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

263 Views

We can convert any decimal number to its equivalent octal by following program.In this we reserve the reminder we get after divide the given number by 8 as it is the base of Octal and then reverse the order of reminders we have stored by multiplying each reminder by 10.Let ... Read More

JavaBean class in Java

Ankith Reddy

Ankith Reddy

Updated on 25-Jun-2020 14:22:20

4K+ Views

A JavaBean is a specially constructed Java class written in the Java and coded according to the JavaBeans API specifications.Following are the unique characteristics that distinguish a JavaBean from other Java classes −It provides a default, no-argument constructor.It should be serializable and that which can implement the Serializable interface.It may ... Read More

Referencing Subclass objects with Subclass vs Superclass reference

Ankith Reddy

Ankith Reddy

Updated on 25-Jun-2020 14:15:01

3K+ Views

In java inheritance some of the basic rules includes −Object relation of Superclass (parent) to Subclass (child) exists while child to parent object relation never exists.This means that reference of parent class could hold the child object while child reference could not hold the parent object.In case of overriding of ... Read More

Advertisements