Ankith Reddy has Published 1132 Articles

Get Synchronized List from ArrayList in java

Ankith Reddy

Ankith Reddy

Updated on 12-Mar-2024 17:51:24

2K+ Views

In order to get a synchronized list from an ArrayList, we use the synchronizedList(List ) method in Java. The Collections.synchronizedList(List ) method accepts the ArrayList as an argument and returns a thread safe list.Declaration −The Collections.synchronizedList(List ) method is declared as follows −public static List synchronizedList(List list)Let us ... Read More

Recycler view item animate when scrolling in Android

Ankith Reddy

Ankith Reddy

Updated on 04-Mar-2024 13:22:39

1K+ Views

Before getting into Item animation for recycler view example, we should know what is Recycler view in android. Recycler view is a more advanced version of the list view and it works based on View holder design pattern. Using recycler view we can show grids and list of items.card view ... Read More

HTML <base> target Attribute

Ankith Reddy

Ankith Reddy

Updated on 29-Feb-2024 14:31:18

265 Views

The target attribute of the element is used to set the default target for the hyperlinks in a document. Syntax Following is the syntax − Here, _blank is used to open the linked document in new window or tab, _self opens the linked document in the ... Read More

How to change the playing speed of videos in HTML5?

Ankith Reddy

Ankith Reddy

Updated on 21-Nov-2023 21:00:26

1K+ Views

Use the playbackRate property sets the current playback speed of the audio/video. With that, the defaultPlaybackRate property sets the default playback speed of the audio/video. Change the playing speed of videos You can try to run the following code to change the playing speed of videos − /* play video ... Read More

isalpha() and isdigit() in C/C++

Ankith Reddy

Ankith Reddy

Updated on 07-Nov-2023 13:17:18

32K+ Views

isalpha() The function isalpha() is used to check that a character is an alphabet or not. This function is declared in ctype.h header file. It returns an integer value, if the argument is an alphabet otherwise, it returns zero. Here is the syntax of isalpha() in C language, int isalpha(int ... Read More

What is IEEE 802.3?

Ankith Reddy

Ankith Reddy

Updated on 03-Nov-2023 14:26:56

27K+ Views

IEEE 802.3 is a set of standards and protocols that define Ethernet-based networks. Ethernet technologies are primarily used in LANs, though they can also be used in MANs and even WANs. IEEE 802.3 defines the physical layer and the medium access control (MAC) sub-layer of the data link layer for ... Read More

Unsigned and Signed Binary Numbers

Ankith Reddy

Ankith Reddy

Updated on 01-Nov-2023 01:26:11

45K+ Views

Variables such as integers can be represent in two ways, i.e., signed and unsigned. Signed numbers use sign flag or can be distinguish between negative values and positive values. Whereas unsigned numbers stored only positive numbers but not negative numbers.Number representation techniques like: Binary, Octal, Decimal, and Hexadecimal number representation ... Read More

Timers of 8051

Ankith Reddy

Ankith Reddy

Updated on 31-Oct-2023 21:54:08

48K+ Views

In Intel 8051, there are two 16-bit timer registers. These registers are known as Timer0 andTimer1. The timer registers can be used in two modes. These modes areTimer mode and the Counter mode. The only difference between these two modes is the source for incrementing the timer registers. Timer ModeIn the ... Read More

Interfacing Stepper Motor with 8051Microcontroller

Ankith Reddy

Ankith Reddy

Updated on 31-Oct-2023 21:33:56

49K+ Views

In this section, we will see how to connect a stepper motor with Intel 8051 Microcontroller. Before discussing the interfacing techniques, we will see what are the stepper motors and how they work.Stepper MotorStepper motors are used to translate electrical pulses into mechanical movements. In some disk drives, dot matrix ... Read More

Conversion of Binary to Gray Code

Ankith Reddy

Ankith Reddy

Updated on 31-Oct-2023 13:38:45

69K+ Views

The reflected binary code or Gray code is an ordering of the binary numeral system such that two successive values differ in only one bit (binary digit). Gray codes are very useful in the normal sequence of binary numbers generated by the hardware that may cause an error or ambiguity ... Read More

1 2 3 4 5 ... 114 Next
Advertisements