George John has Published 1081 Articles

Java program to find whether given character is vowel or consonant using switch case

George John

George John

Updated on 13-Sep-2024 10:21:14

3K+ Views

A switch statement in Java allows a variable to be tested for equality against a list of values. Each value is called a case, and the variable being switched on is checked for each case. To verify whether given character is a vowel read a character from the user into ... Read More

Java program to set title position

George John

George John

Updated on 11-Sep-2024 12:25:16

1K+ Views

In this article, you'll learn how to position the title of a border in a Java Swing application using the setTitlePosition() method. We'll position the title above the border's top line by utilizing the TitledBorder.ABOVE_TOP constant. This technique is useful for customizing the appearance of your Swing components. To set ... Read More

Java program to print all unique words of a string

George John

George John

Updated on 16-Aug-2024 23:25:13

2K+ Views

In this article, we will learn to find unique words in a string using the Map utility of Java because of its property that it does not contain duplicate keys. To find unique words first get all words in the array to compare each word, for this split string based ... Read More

Change the font size of a button with CSS

George John

George John

Updated on 06-Aug-2024 12:03:39

26K+ Views

To Change the font size of a button with CSS, we will be using two different approaches. In this article, we will see how to change the font size of button using CSS properties. We are having three different buttons, our task is to change the font size of buttons ... Read More

Adding YouTube videos on an HTML web page

George John

George John

Updated on 24-Nov-2023 01:36:49

966 Views

Videos can be easily from YouTube to your web page. You need to just embed the videos. At first, get the Video id − Step1: Go to the Video and right click on it. Select “Stats for nerds” − On clicking, you will get the following dialog box displaying ... Read More

Linear gradient with rainbow color

George John

George John

Updated on 24-Nov-2023 01:23:07

1K+ Views

To create a linear gradient that looks like rainbow color, you can try to run the following code - Example                    #demo {             height: 100px;             background: linear-gradient(to right, red,orange,yellow,green,blue,indigo,violet);          }                     Linear Gradient       Rainbow    

Are there any style options for the HTML5 Date picker?

George John

George John

Updated on 22-Nov-2023 04:25:09

2K+ Views

The date picker in HTML5 shows a popup like a calendar. This is the same as selecting the months and years and this adds the date. Example: Style options for HTML date pickerYou can also customize the popup and add background color as well. You can try to run the ... Read More

HTML 'input' required Attribute

George John

George John

Updated on 18-Nov-2023 03:28:20

2K+ Views

The required attribute of the element is used to set a field which is required to be filled before the form is submitted. If the field set with required attribute is not filled, then on clicking the SUBMIT button, the form won’t submit.Following is the syntax −Let us now ... Read More

Two’s Complement

George John

George John

Updated on 08-Nov-2023 00:47:01

166K+ Views

Binary Number System is one the type of most popular Number Representation techniques that used in digital systems. In the Binary System, there are only two symbols or possible digit values, i.e., 0 (off) and 1 (on). Represented by any device that only 2 operating states or possible conditions. Generally, ... Read More

IEEE 802.3 and Ethernet

George John

George John

Updated on 03-Nov-2023 13:56:49

45K+ Views

Ethernet is a set of technologies and protocols that are used primarily in LANs. It was first standardized in 1980s by IEEE 802.3 standard. IEEE 802.3 defines the physical layer and the medium access control (MAC) sub-layer of the data link layer for wired Ethernet networks. Ethernet is classified into ... Read More

Advertisements