Article Categories
- All Categories
-
Data Structure
-
Networking
-
RDBMS
-
Operating System
-
Java
-
MS Excel
-
iOS
-
HTML
-
CSS
-
Android
-
Python
-
C Programming
-
C++
-
C#
-
MongoDB
-
MySQL
-
Javascript
-
PHP
-
Economics & Finance
Articles by George John
Page 36 of 79
Center any element in Bootstrap
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 MoreBootstrap .form-control-static class
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 MoreUsage of Bootstrap class panel-success
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 MoreContainer for form input and label with Bootstrap
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 MoreAdd hover color to background color of the table row in Bootstrap
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 MoreHow to Initialize and Compare Strings in Java?
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 MoreModular Exponentiation (Power in Modular Arithmetic) in java
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 Moretable-bordered class in Bootstrap
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 MoreOffset Columns in Bootstrap
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 MoreBootstrap btn-toolbar class
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