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 Samual Sam
Page 84 of 151
Compilation and execution of Java Program
Let us look at a simple code first that will print the words Hello World.Examplepublic class MyFirstJavaProgram { /* This is my first java program. * This will print 'Hello World' as the output */ public static void main(String []args) { System.out.println("Hello World"); // prints Hello World } }Let's look at how to save the file, compile, and run the program. Please follow the subsequent steps −Open notepad and add the code as above.Save the file as: MyFirstJavaProgram.java.Open a command prompt window and go to the ...
Read MoreSet Menus to drop up with Bootstrap
Menus can also be built to drop up rather than down. To achieve this, simply add .dropup to the parent .btn-group container. You can try to run the following code set menus to drop up −Example Bootstrap Example Dropdown Subject Programming Web Dev Database Networking Dropup Subject Programming Web Dev Database Networking
Read MoreAssigning values to static final variables in java
In java, a non-static final variable can be assigned a value at two places.At the time of declaration.In constructor.Examplepublic class Tester { final int A; //Scenario 1: assignment at time of declaration final int B = 2; public Tester() { //Scenario 2: assignment in constructor A = 1; } public void display() { System.out.println(A + ", " + B); } public static void main(String[] args) { Tester tester = new Tester(); ...
Read MoreBootstrap input-group-btn class
Use class .input-group-btn to wrap the buttons. This is required due to the default browser styles that cannot be overridden.You can try to run the following code to implement the input-group-btn class in BootstrapExample Bootstrap Example Go! Go!
Read MoreBootstrap class input-group-lg
To make larger input group, use the input-group-lg.You can try to run the following code to implement the input-group-lg class in BootstrapExample Bootstrap Example $
Read MoreBootstrap navbar-default class
The navbar-default class in Bootstrap is used to create a navigation bar.You can try to run the following code to implement a navbar-default classExample Bootstrap Example Cars BMW Audi
Read MoreCreate Table with Bootstrap
To create a table with Bootstrap, you can try to run the following codeExample Bootstrap Table Sports Table Footballer Rank Messi 1 Neymar 2
Read MoreBootstrap .btn-sm class
To create a small button in Bootstrap, use the .btn-sm class.You can try to run the following code to implement the btn-sm classExample Bootstrap Example Small button Result
Read MoreActive Nav States in Bootstrap
For active states, place to active links in Bootstrap −You can try to run the following code to achieve thisExample Bootstrap Example Active State in navigations 29 Home 9 Mail
Read MoreUsage of Bootstrap class panel-primary
The panel-primary class in Bootstrap is a contextual state class. Yes, it is blue in color.You can try to run the following code to implement a panel-primary class in BootstrapExample Bootstrap Example Panel title This is a Basic panel
Read More