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 on Trending Technologies
Technical articles with clear explanations and examples
Private and final methods in Java Programming
In Java private methods are the methods having private access modifier and are restricted to be access in the defining class only and are not visible in their child class due to which are not eligible for overridden. However, we can define a method with the same name in the child class and could access in parent class.Like private methods final methods in Java are the methods having final non-access modifier instead of private and are again restricted to be accessed in the defining class only and are not visible in their child class due to which are not eligible ...
Read MoreCreate BigInteger from byte array in Java
BigInteger class provides operations for modular arithmetic, GCD calculation, primality testing, prime generation, bit manipulation, and a few other miscellaneous operations.Let’s say the following is our byte array −byte[] arr = new byte[] { 0x1, 0x00, 0x00 };We will now convert them to BigInteger −BigInteger bInteger = new BigInteger(arr);The following is an example that creates BigInteger from a byte array in Java.Exampleimport java.math.BigInteger; public class Demo { public static void main(String[] argv) throws Exception { byte[] arr = new byte[] { 0x1, 0x00, 0x00 }; BigInteger bInteger = new BigInteger(arr); System.out.println(bInteger); } }Output65536
Read MoreDisplay text inside an element in a smaller font size with Bootstrap
Use the .initialism class in Bootstrap to show text inside an element. This allows setting smaller font size in Bootstrap −Example Bootstrap Example Cricket The ICC governs cricket boards. The ICC was founded as the Imperial Cricket Conference in 1909 Above the ICC abbreviation text is displayed with a smaller font.
Read Moreborder-top-0 class in Bootstrap 4
Use the border-top-0 class in Bootstrap 4 to remove the top border.Set the border-top-0 class − Rectangle is missing the TOP border. Let us see an example to implement the border-top-0 class −Example Bootstrap Example .mystyle { width: 350px; height: 170px; margin: 10px; } Heading Two Rectangle is missing the TOP border.
Read MoreSet orange border on an element in Bootstrap to indicate danger
To set orange border to an element, use the border-warning class − Danger (Orange border) Set the style for the element − .mystyle { width: 200px; height: 100px; margin: 10px; } Let us see an example to implement the border-warning class in Bootstrap −Example Bootstrap Example .mystyle { width: 200px; height: 100px; margin: 10px; } The following are two Rectangles: Danger (Orange border)
Read MoreSet a white border to an element in Bootstrap
Use the border-white class in Bootstrap 4 to set white border to an element. This has white border The test class above styles the element as shown below − .test { width: 120px; height: 100px; margin: 10px; background: blue; } Let us see an example to implement the border-white class in Bootstrap −Example Bootstrap Example .test { width: 120px; height: 100px; margin: 10px; background: blue; } Two Rectangles This has white border This has orange border
Read MoreHide content with Bootstrap
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 Moresr-only Bootstrap class
Hide an element to all devices except screen readers with the class .sr-only.You can try to run the following code to implement the sr-only Bootstrap −Example Bootstrap Example Email address Password
Read MoreBootstrap 4 Button .btn-outline-dark class
Use the .btn-outline-dark class in Bootstrap to set dark outline on a button.The following is an example of a button with dark outline −Set the above outline to the button, using the btn-outline-dark class as shown below − Submit You can try to run the following code to implement the btn-outline-dark class −Example Bootstrap Example Bootstrap 4 Learning btn-outline-dark class usage: Submit
Read MoreCreate a padded grey box with rounded corners in Bootstrap
Use the .jumbotron class to create a padded grey box with rounded corners.You can try to run the following code to implement .jumbotron class in Bootstrap.Example Bootstrap Example Welcome to my website. This is demo text. More
Read More