Chandu yadav has Published 1163 Articles

C# Value Tuple

Chandu yadav

Chandu yadav

Updated on 10-Apr-2020 09:12:04

54 Views

A value type representation of the C# Tuple is Value Type Tuple. It was introduced in C# 7.0.Note − Add System.ValueTuple package to run ValueTuple program.Let’s see how to add it −Go to your projectRight click on the project in the Solution ExplorerSelect “Manage NuGet Packages”You will reach the NuGet Package ... Read More

Get the drive format in C#

Chandu yadav

Chandu yadav

Updated on 06-Apr-2020 11:00:06

201 Views

Use the DriveFormat property to get the drive format in C#.Set the drive for which you want to display the format −DriveInfo dInfo = new DriveInfo("C");Now, use DriveFormat to get the drive format −dInfo.DriveFormatThe drive formats for a windows system can be NTFS or FAT32.Here is the complete code −Exampleusing ... Read More

How to declare the painting area of the background with CSS

Chandu yadav

Chandu yadav

Updated on 16-Mar-2020 07:50:52

150 Views

The CSS background-clip property is used to declare the painting area of the background. You can try to run the following code to implement the background-clip property with CSS −ExampleLive Demo                    #demo {             ... Read More

Give the object a sine wave distortion to make it look wave with CSS

Chandu yadav

Chandu yadav

Updated on 16-Mar-2020 07:46:18

289 Views

Wave effect is used to give the object a sine wave distortion to make it look wavy.The following parameters can be used in this filterS.NoParameter & Description1AddA value of 1 adds the original image to the waved image, 0 does not.2FreqThe number of waves.3LightThe strength of the light on the ... Read More

CSS pause-after property

Chandu yadav

Chandu yadav

Updated on 16-Mar-2020 07:27:55

94 Views

This property specifies a pause to be observed after speaking an element's content. The possible values are −time − Expresses the pause in absolute time units (seconds and milliseconds).percentage − Refers to the inverse of the value of the speech-rateproperty. For example, if the speech-rate is 120 words per minute ... Read More

Role of media attribute on the LINK element

Chandu yadav

Chandu yadav

Updated on 16-Mar-2020 07:14:04

84 Views

The media attribute on the LINK element specifies the target media of an external style sheet −Example    

Which element is used to add special style to the first letter of the text in a selector with CSS

Chandu yadav

Chandu yadav

Updated on 13-Mar-2020 13:04:04

63 Views

Use the :first-letter element to add special effects to the first letter of elements in the document. You can try to run the following code to add special styles to the first letter of text −ExampleLive Demo                    p:first-letter {   ... Read More

Java Program to Check if a String is Numeric

Chandu yadav

Chandu yadav

Updated on 13-Mar-2020 13:01:54

206 Views

ExampleYou can check if a given string is Numeric as shown in the following program.Live Demoimport java.util.Scanner; public class StringNumeric {    public static void main(String[] args) {       Scanner sc = new Scanner(System.in);       System.out.println("Enter a string ::");       String str = sc.next(); ... Read More

Java program to calculate mode in Java

Chandu yadav

Chandu yadav

Updated on 13-Mar-2020 10:54:18

12K+ Views

In statistics math, a mode is a value that occurs the highest numbers of time. For Example, assume a set of values 3, 5, 2, 7, 3. The mode of this value set is 3 as it appears more than any other number.Algorithm1.Take an integer set A of n values. ... Read More

Java program to swap two integers

Chandu yadav

Chandu yadav

Updated on 13-Mar-2020 10:34:31

2K+ Views

Read integers from users using the nextInt() method of the Scanner class.To swap them −Create a variable (temp), initialize it with 0.Assign 1st number to temp.Assign 2nd number to 1st number.Assign temp to second number.Exampleimport java.util.Scanner; public class SwapTwoNumbers {    public static void main(String args[]){       Scanner ... Read More

Advertisements