Flip the Text Using CSS

Nikhilesh Aleti
Updated on 13-Sep-2024 16:46:22

5K+ Views

To flip the text using CSS, we will be using CSS transform property. Flipping is a technique that transforms or mirrors an element on particular axis (horizontal or vertical). We will be understanding three different approaches to fip the text using CSS. In this article, we are having some textual content written using span tag. Our task is to flip the text using CSS. Approaches to Flip the Text using CSS Here is a list of approaches to flip the text using CSS which we will be discussing in this article with stepwise explaination and complete example codes. ... Read More

Java Program to Print ASCII Values

Shriansh Kumar
Updated on 13-Sep-2024 16:14:00

1K+ Views

For a given character, say "ch", write a Java program to print its ASCII value. We can find the ASCII value of any character by assigning it to an integer value and printing that integer value. The term ASCII stands for American Standard Code for Information Interchange. There are 128 standard ASCII codes, each of which can be represented by a 7-digit binary number: 0000000 through 1111111. Extended ASCII adds an additional 128 characters that vary between computers, programs and fonts. Example Scenario: Input: character = s; Output: ascii_value = 115 Example 1 In this example, we are printing ... Read More

Implement Graph Data Structure in Java

Shriansh Kumar
Updated on 13-Sep-2024 15:55:37

1K+ Views

A Graph is a non-linear data structure made up of a group of vertices and edges. A vertex or node represent an object, and the connections between them are called edges. In this article, we will understand how to implement the graph data structure in Java. Algorithm Step 1: START Step 2: Create a class and its constructor to initialize graph. In this class, use LinkedList for creating adjacency list. Step 3: Define a method in the same class to add edges to the graph. ... Read More

Print Factorial of a Given Number in Java

Shriansh Kumar
Updated on 13-Sep-2024 15:55:01

5K+ Views

Given a number of type integer, write a Java program to print its factorial. The factorial of a positive integer n is the product of all values from n to 1. For example, the factorial of 3 is (3 * 2 * 1 = 6). Let's understand the problem statement with examples − Example Scenario 1: Input: int n = 4; Output: res = 24 Calculation: 4! = 4 * 3 * 2 * 1 = 24 Example Scenario 2: Input: int n = 0; Output: res = 1 Factorial of 0 is always 1. Finding Factorial ... Read More

Subtract Two Matrices in Java

Shriansh Kumar
Updated on 13-Sep-2024 15:54:00

1K+ Views

For two given matrix each of size m×n, write a Java program to subtract them. The matrix has a row and column arrangement of its elements. A matrix with m rows and n columns can be called as m×n matrix. Individual entries in the matrix are called element and can be represented by a[i][j] which means that the element a is present at the ith row and jth column. Note that two matrix can be subtracted if and only if the number of rows and columns of each matrix are equal. Now, let's understand the problem statement with an example ... Read More

Shake a Button on Hover using HTML and CSS

Shubham Vora
Updated on 13-Sep-2024 14:11:44

4K+ Views

To shake a button on hover using HTML and CSS, we should have basic understanding of CSS animations and keyframes. We will be understanding how to utilize CSS animation and keyframes to apply shaking effect to a button on hovering. In this article, we are having buttons wrapped inside a div container. Our task is to shake button on hover using HTML and CSS. Steps to Shake Button on Hover Using HTML and CSS To shake a button on hover using HTML and CSS, we will be utilizing CSS animation and transform properties. We will be following below mentioned steps ... Read More

Check Whether a Number is Positive or Negative in Java

Shriansh Kumar
Updated on 13-Sep-2024 10:23:24

1K+ Views

In this article, we will learn to check whether the number is positive or negative in Java. To check whether the specified number is positive or negative can be determined with respect to 0. A number greater than 0 is considered a positive number whereas a number less than 0 is considered a negative number, we can use Java conditional statements like if-else-if blocks or ternary operators. Before that let's discuss the problem statement with the help of examples − Problem Statement Given an integer number as an input, write a Java program to check whether the number is positive ... Read More

Find Whether Given Character is Vowel or Consonant in Java

karthikeya Boyini
Updated on 13-Sep-2024 10:21:30

13K+ Views

In this article, we will learn to find whether a given character is a vowel or consonant using Java. In the English alphabet, the characters 'a', 'e', 'i', 'o', and 'u' are vowels and the remaining letters are consonants. To find whether the given letter is a vowel or consonant. Using a loop and or operator verify whether the given character is 'a' or 'e' or 'i' or 'o' or 'u' else it is consonant. Steps to find whether given character is vowel or consonant Following are the steps to find whether given character is a vowel or consonant− ... Read More

Check if Character is Vowel or Consonant Using Switch Case in Java

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 a variable (say ch). Problem Statement Given a character, write a Java program to determine whether it is a vowel or a consonant using a switch statement. Input Enter a character : a Output Given character is an vowel Steps to check whether given character is vowel or ... Read More

Find If a Number is a Leap Year in Java

Chandu yadav
Updated on 13-Sep-2024 10:20:55

79K+ Views

In this article, we will learn to find if a year is a leap year or not using Java. Finding whether a year is a leap or not is a bit tricky. We generally assume that if a year number is evenly divisible by 4 is a leap year. But it is not the only case. A year is a leap year if − It is evenly divisible by 100 If it is divisible by 100, then it should also be divisible by 400 Except this, all ... Read More

Advertisements