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 write single line comment in Java?
To comment a particular line just place ‘double back slash (//)’ before the line as shown below. // Hello this line is commented Example Following example demonstrates the usage of single line comments in Java. public class CommentsExample { public static void main(String args[]) { //Declaring a variable named num int num = 1; //Printing the value of the variable num System.out.println("value if the variable num: "+num); } } Output value if the variable num: 1
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 MoreStacked-to-horizontal Bootstrap Grid
The following is an example showing stacked-to-horizontal Bootstrap Grid −Example Bootstrap Example Heading One Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim ...
Read MoreWhat is the difference between /* */ and /** */ comments in Java?
Multiline comments (/* */) are used to comment multiple lines in the source code. Example public class CommentsExample { /* Following is the main method here, We create a variable named num. And, print its value * */ public static void main(String args[]) { //Declaring a variable named num int num = 1; ...
Read MoreUsage of Bootstrap previous class to left align the links
Use the .previous class in Bootstrap to left align the links. You can try to run the following code to implement the .previous class −Example Bootstrap Example Answers ← Older Newer →
Read MoreWhat are valid identifiers in Java?
A valid identifier in java – Must begin with a letter (A to Z or a to z), currency character ($) or an underscore (_). Can have any combination of characters after the first character. Cannot be a keyword. Example Following example shows various possible identifiers used to declare a variable in Java. public class VariableTest { public static void main(String args[]) { // Declaring a variable named num int num = 1; int _num = ...
Read MoreBootstrap Grid for multiple devices
The following is an example showing the usage of Grid for multiple devices −Example Bootstrap Example Hello, world! Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut ...
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 MoreNesting Columns in Bootstrap
To nest your content with the default grid, add a new .row and set of .col-md-* columns within an existing .col-md-* column. You can try to run the following code to learn how to implement nesting columns in Bootstrap −Example Bootstrap Example Heading Heading This is demo text. Heading This is demo text. This is box 1. This is box 2. This is box 3. This is box 4.
Read MoreBootstrap .pagination class
Use the .pagination class to get the pagination on your page.You can try to run the following code to implement the .pagination class −Example Bootstrap Example Coding Examples The following are the examples: « Code1 Code2 Code3 »
Read More