Chandu yadav

Chandu yadav

810 Articles Published

Articles by Chandu yadav

Page 36 of 81

Use reflection to create, fill, and display an array in Java

Chandu yadav
Chandu yadav
Updated on 11-Mar-2026 285 Views

An array is created using the java.lang.reflect.Array.newInstance() method. This method basically creates a new array with the required component type as well as length.The array is filled using the java.lang.reflect.Array.setInt() method. This method sets the required integer value at the index specified for the array.The array displayed using the for loop. A program that demonstrates this is given as follows −Exampleimport java.lang.reflect.Array; public class Demo {    public static void main (String args[]) {       int arr[] = (int[])Array.newInstance(int.class, 10);       int size = Array.getLength(arr);       for (int i = 0; i

Read More

When should you use a class vs a struct in C++?

Chandu yadav
Chandu yadav
Updated on 11-Mar-2026 509 Views

Structures and classes are very similar in C++ except for some differences. So details about these differences are given below that help to decide when to use a class or structure in C++.Differences between Class and StructureAll the members of a class are private by default. This is different compared to structures as all the members of a structure are public by default.A program that demonstrates a class in C++ is given as follows −Example#include using namespace std; class Example {    int val; }; int main() {    Example obj;    obj.val = 20;    return 0; }This ...

Read More

Python Text Sequence Types

Chandu yadav
Chandu yadav
Updated on 11-Mar-2026 890 Views

In python the str object, handles the text or string type data. Strings are immutable. The strings are sequence of Unicode characters. We can use single quote, double quotes or triple quotes to define the string literals. ‘This is a string with single quote’ “Another Text with double quotes” ‘’’Text using three single quotes’’’ or “””Text using three double quotes””” We can use triple quotes to assign multiline strings in python. There is different string related functions. Some of the String methods are as follows − Sr.No. Operation/Functions & Description 1 s.capitalize() Convert first ...

Read More

Hide content with Bootstrap

Chandu yadav
Chandu yadav
Updated on 11-Mar-2026 451 Views

To hide content with Bootstrap, use the .hidden class in Bootstrap. You can try to run the following code to hide content:Example           Bootstrap Example                                                       Content is visible.                                 Content is hidden.                    

Read More

Item text inside the list group in Bootstrap

Chandu yadav
Chandu yadav
Updated on 11-Mar-2026 331 Views

To set item text inside the list group, use the .list-group-item-text class.You can try to run the following code to implement the .list-group-item-text class −Example           Bootstrap Example                                          Cars                                      Hyundai                i10                i20                                        Volkswagen                                Vento                Polo                                

Read More

How to use Bootstrap Tab Plugins

Chandu yadav
Chandu yadav
Updated on 11-Mar-2026 221 Views

By combining a few data attributes, you can easily create a tabbed interface. With this plug-in you can transition through panes of local content in tabs or pills, even via drop down menus.You can try to run the following code to implement tab plugins −Example           Bootstrap Example                                                                      Home             ...

Read More

Bootstrap Pills

Chandu yadav
Chandu yadav
Updated on 11-Mar-2026 289 Views

To turn the tabs into pills, use the class .nav-pills,You can try to run the following code to implement Bootstrap Pills:Example           Bootstrap Example                                 Subjects                Java          WordPress          JavaScript          AngularJS          

Read More

Disable a dropdown item with Bootstrap

Chandu yadav
Chandu yadav
Updated on 11-Mar-2026 6K+ Views

To disable to dropdown item in Bootstrap, use the .disabled class with the .dropdown-menu class.You can try to run the following code to disable dropdown item −Example           Bootstrap Example                                          Beverages          The following are the beverages available in India:                       Beverages                                        Gatorade                Sting                Red Bull                Pepsi                Coca Cola                                

Read More

Center tabs in Bootstrap

Chandu yadav
Chandu yadav
Updated on 11-Mar-2026 987 Views

Use the .nav-justified class in Bootstrap to center tabs in Bootstrap.You can try to run the following code to center tabs −Example           Bootstrap Example                                          Web Development          The following are the web dev technologies:                       HTML5             jQuery             JavaScript             Ajax             ES6                    

Read More

Usage of Bootstrap next class to right-align the links

Chandu yadav
Chandu yadav
Updated on 11-Mar-2026 235 Views

Use the .next class in Bootstrap to right align the links. You can try to run the following code to implement the .next class:Example           Bootstrap Example                                 Answers                      ← Older          Newer →          

Read More
Showing 351–360 of 810 articles
« Prev 1 34 35 36 37 38 81 Next »
Advertisements