Samual Sam

Samual Sam

1,507 Articles Published

Articles by Samual Sam

Page 84 of 151

Compilation and execution of Java Program

Samual Sam
Samual Sam
Updated on 11-Mar-2026 18K+ Views

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 More

Set Menus to drop up with Bootstrap

Samual Sam
Samual Sam
Updated on 11-Mar-2026 210 Views

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 More

Assigning values to static final variables in java

Samual Sam
Samual Sam
Updated on 11-Mar-2026 1K+ Views

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 More

Bootstrap input-group-btn class

Samual Sam
Samual Sam
Updated on 11-Mar-2026 990 Views

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 More

Bootstrap class input-group-lg

Samual Sam
Samual Sam
Updated on 11-Mar-2026 268 Views

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 More

Bootstrap navbar-default class

Samual Sam
Samual Sam
Updated on 11-Mar-2026 1K+ Views

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 More

Create Table with Bootstrap

Samual Sam
Samual Sam
Updated on 11-Mar-2026 1K+ Views

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 More

Bootstrap .btn-sm class

Samual Sam
Samual Sam
Updated on 11-Mar-2026 404 Views

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 More

Active Nav States in Bootstrap

Samual Sam
Samual Sam
Updated on 11-Mar-2026 357 Views

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 More

Usage of Bootstrap class panel-primary

Samual Sam
Samual Sam
Updated on 11-Mar-2026 279 Views

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
Showing 831–840 of 1,507 articles
« Prev 1 82 83 84 85 86 151 Next »
Advertisements