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
How to find numbers in an array that are greater than, less than, or equal to a value in java?
You can find numbers in an array that are greater than, less than, or equal to a value as:Examplepublic class GreaterOrLess { public static void main(String args[]) { int value = 65; int[] myArray = {41, 52, 63, 74, 85, 96 }; System.out.println("Elements of the array that are equal to the given value are::"); for(int i = 0; i
Read MoreBootstrap element styling
Bootstrap styles elements with a light dotted border along the bottom and reveal the full text on hover.The HTML element provides markup for abbreviations or acronyms, such as NASA, HTTPS, ICC, etc.You can try to run the following to understand how Bootstrap styles the element −Example Bootstrap abbr styling NASA ICC
Read MoreCan you have a method in Java with varying number of arguments?
Yes, we can write a method using variable arguments once you use variable arguments as a parameter method while calling you can pass as many numbers of arguments to this method (variable number of arguments) or, you can simply call this method without passing any arguments.Examplepublic class Sample{ void demoMethod(String... args) { for (String arg : args) { System.out.println(arg); } } public static void main(String args[] ){ new Sample().demoMethod("ram", "rahim", "robert"); new Sample().demoMethod("krishna", "kasyap"); new Sample().demoMethod(); } }Outputram rahim robert krishna kasyap
Read MoreBootstrap pull-right class
Use the default around any HTML text. You can also add a tag for identifying the source of the quote and right aligning the blockquote using class .pull-right:Example Bootstrap pull-right class This is a default blockquote example. This is a default blockquote example. This is a default blockquote example.This is a default blockquote example. This is a default blockquote example. This is a blockquote with a source title. Someone famous in Source Title This is a blockquote aligned to the right. Someone famous in Source Title
Read MoreCreate Inverted Navbar in Bootstrap
To create an inverted navbar with a black background and with white text, simply add the .navbar-inverse class to the .navbar class.Example Bootstrap Example TutorialsPoint iOS SVN Java jmeter EJB Jasper Report
Read MoreBootstrap element
The element in Bootstrap is used to set inline subheadings.You can try to run the following code to implement the element:Example Bootstrap small element Heading One I'm secondary Heading Heading One I'm secondary Heading
Read MoreMake an Ordered list with Bootstrap
For ordered list in Bootstrap, you can try to run the following code −Example Bootstrap lists Lists Fruits (Ordered List) Kiwi Apple Mango
Read MoreMake Definition list with Bootstrap
For definition list in Bootstrap, you can try to run the following code −Example Bootstrap lists Lists Definition List Description 1 Item 1 Description 2 Item 2 Fruits (Ordered List) Kiwi Apple Mango Vegetables (UnOrdered List) Tomato Brinjal Broccoli
Read Morelist-unstyled class in Bootstrap
For unstyled list in Bootstrap, use the list-unstyled class.You can try to run the following code to implement the list-unstyled class −Example Bootstrap lists Lists Definition List Unstyled List Item 1 Item 2 Item 3 Item 4 Vegetables (UnOrdered List) Tomato Brinjal Broccoli
Read MoreHow to convert an array to string in java?
The Arrays class of the java.util package provides toString() methods for all primitive data types and object. These methods accept an array and return its string representation.Therefore, to convert an array to string pass the required array to this method.Exampleimport java.util.Arrays; public class ArrayToString { public static void main(String args[]) throws Exception { int[] myArray = {23, 93, 56, 92, 39}; String str = Arrays.toString(myArray); System.out.println(str); } }Output[23, 93, 56, 92, 39]
Read More