George John

George John

789 Articles Published

Articles by George John

Page 37 of 79

Bootstrap form structure

George John
George John
Updated on 11-Mar-2026 566 Views

To create a form in Bootstrap,Add a role form to the parent element.Wrap labels and controls in a with class .form-group. This is needed for optimum spacing.Add a class of .form-control to all textual , , and elements.You can try to run the following code to create a form −Example           Bootstrap Forms                                                             Full Name                         Subject                                             File input                         Example block-level help text here.                                 Notification about our products                    Submit          

Read More

Create a large button group with Bootstrap

George John
George John
Updated on 11-Mar-2026 301 Views

To create a large button group in Bootstrap, use the .btn-group-lg class.You can try to run the following code to form a large button group −Example           Bootstrap Example                                 The following are the car brands:                BMW          Audi          Jeep          Datsun          Toyota             The following are FMCG:                ITC Limited          Colgate-Palmolive          Nestle          Britannia Industries Limited          

Read More

Center any element in Bootstrap

George John
George John
Updated on 11-Mar-2026 349 Views

Use the .center-block class in Bootstrap to center an element.You can try to run the following code to implement the .center-block class:Example           Bootstrap Example                                          Heading One          Text will be in center.          

Read More

Bootstrap .form-control-static class

George John
George John
Updated on 11-Mar-2026 2K+ Views

Use the class .form-control-static on a when you need to place plain text next to a form label within a horizontal form.You can try to run the following code to implement the .form-control-static class −Example           Bootstrap Example                                                             Email:                            amit@example.com                                             Password:                                                            

Read More

Usage of Bootstrap class panel-success

George John
George John
Updated on 11-Mar-2026 371 Views

The panel-success class in Bootstrap is a contextual state class to form a panel more meaningful to a particular context. It indicates success.You can try to run the following code to implement the panel-success class −Example           Bootstrap Example                                                       Panel Title                                 This is a demo panel!                    

Read More

Container for form input and label with Bootstrap

George John
George John
Updated on 11-Mar-2026 914 Views

Use the .form-group class in Bootstrap to set a container for form input and label &minusExample           Bootstrap Example                                                       Student Name                                          Upload Resume                        Example block-level help text here.                 Next          

Read More

Add hover color to background color of the table row in Bootstrap

George John
George John
Updated on 11-Mar-2026 1K+ Views

To add hover color to background color of the table row, use the .active class in Bootstrap.Example           Bootstrap Example                                          Student Information                                                         Student                   Subject                                                                           Tom                   Maths                                                   Amit                   Programming                                                   Steve                   Java                                                

Read More

How to Initialize and Compare Strings in Java?

George John
George John
Updated on 11-Mar-2026 261 Views

You can compare Strings using compareTo() method or, equals() method or, or == operator. Following example demonstrates how to initialize and compare strings in Java. Example public class StringDemo { public static void main(String[] args) { String str1 = "tutorials"; String str2 = "point"; // comparing str1 and str2 int retval = str1.compareTo(str2); // prints the return value of the comparison if (retval < 0) { System.out.println("str1 is greater than str2"); } else if (retval == 0) { System.out.println("str1 is equal to str2"); } else { System.out.println("str1 is less than str2"); } } } Output str1 is less than str2

Read More

Modular Exponentiation (Power in Modular Arithmetic) in java

George John
George John
Updated on 11-Mar-2026 1K+ Views

The java.math.BigInteger.modPow(BigInteger exponent, BigInteger m) returns a BigInteger whose value is (thisexponent mod m). Unlike pow, this method permits negative exponents. You can calculate the modular Exponentiation using this method.Programimport java.math.*; public class BigIntegerDemo {    public static void main(String[] args) {       // create 3 BigInteger objects       BigInteger bi1, bi2, bi3;             // create a BigInteger exponent       BigInteger exponent = new BigInteger("2");       bi1 = new BigInteger("7");       bi2 = new BigInteger("20");             // perform modPow operation on bi1 using bi2 and exp       bi3 = bi1.modPow(exponent, bi2);       String str = bi1 + "^" +exponent+ " mod " + bi2 + " is " +bi3;             // print bi3 value       System.out.println( str );    } }Output:7^2 mod 20 is 9

Read More

table-bordered class in Bootstrap

George John
George John
Updated on 11-Mar-2026 351 Views

To implement a table-bordered class, you can try to run the following code −Example           Bootstrap Table                                                Footballer Rank                                               Footballer                   Rank                   Country                                                                           Messi                   1                   Argentina                                                   Neymar                   2                   Brazil                                                   Ronaldo                   3                   Portugal                                      

Read More
Showing 361–370 of 789 articles
« Prev 1 35 36 37 38 39 79 Next »
Advertisements