George John

George John

789 Articles Published

Articles by George John

Page 36 of 79

Center any element in Bootstrap

George John
George John
Updated on 11-Mar-2026 338 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 364 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 904 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 255 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 350 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

Offset Columns in Bootstrap

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

An offset is used to push columns over for more spacing. To use offsets on large displays, use the .col-md-offset-* classes. You can try to run the following code to learn how to work with offset columns in Bootstrap −Example           Bootstrap Example                                          Heading One                                      This is demo text. This is demo text.                                

Read More

Bootstrap btn-toolbar class

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

Set Button Toolbar in Bootstrap using the btn-toolbar class.You can try to run the following code to implement the btn-toolbar class −Example           Bootstrap Example                                                       MCA             BCA                                 MBA             MS                    

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