Ankith Reddy has Published 719 Articles

Printing Multi-Dimensional arrays in Java

Ankith Reddy

Ankith Reddy

Updated on 23-Dec-2024 19:45:09

418 Views

A multi-dimensional array can be easily printed using java.util.Arrays.deepToString() in Java. This method converts the multi-dimensional array to string and prints the array contents enclosed in square brackets. What Are Multi-Dimensional Arrays? Multi-dimensional arrays allow you to store data in ... Read More

Nested Classes in C++

Ankith Reddy

Ankith Reddy

Updated on 19-Nov-2024 18:22:30

29K+ Views

A nested class is a class that is declared in another class. The nested class is also a member variable of the enclosing class and has the same access rights as the other members. However, the member functions of the enclosing class have no special access to the members of ... Read More

Java program to remove the first row from a table with DefaultTableModel

Ankith Reddy

Ankith Reddy

Updated on 23-Oct-2024 17:30:38

872 Views

In this article, we will learn how to display a table with multiple rows and columns in Java using the JTable component. Additionally, we will demonstrate how to remove the first row from the table using the removeRow() method. The first program shows how to create and display a table ... Read More

Java program to accept an integer from user and print it

Ankith Reddy

Ankith Reddy

Updated on 18-Oct-2024 11:56:22

2K+ Views

In this article, we will prompt the user to input an integer, and the entered value will be displayed back to them. To achieve this, we will use the Scanner class from java.util package, which allows us to read user input. Specifically, the nextInt() method of the Scanner class will ... Read More

Java program to find the circumference of a circle

Ankith Reddy

Ankith Reddy

Updated on 24-Jun-2024 15:46:10

9K+ Views

The circumference of a circle is double the product of its radius and the value of PI. Therefore, to calculate the circumference of a circleGet the radius of the circle form the user.Calculate the productPrint the final result.Example: Finding the circumference of a circle import java.util.Scanner; public class CircumfrenceOfCircle { ... Read More

Java program to convert the contents of a Map to list

Ankith Reddy

Ankith Reddy

Updated on 31-May-2024 13:36:10

32K+ Views

The Map class's object contains key and value pairs. You can convert it into two list objects one which contains key values and the one which contains map values separately. To convert a map to list − Create a Map object. Using the put() method ... Read More

Recycler view item animate when scrolling in Android

Ankith Reddy

Ankith Reddy

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

2K+ 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 ... Read More

What is IEEE 802.3?

Ankith Reddy

Ankith Reddy

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

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

Timers of 8051

Ankith Reddy

Ankith Reddy

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

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

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

1 2 3 4 5 ... 72 Next
Advertisements