Java Program to convert int type variables to char
Example 1: Java Program to Convert int to char To Under this program you need to have prior knowledge of Type Conversion class IntToChar{ public static void main(String[] args) {…
Example 1: Java Program to Convert int to char To Under this program you need to have prior knowledge of Type Conversion class IntToChar{ public static void main(String[] args) {…
Example 1: Convert char to int class CharToInt { public static void main(String[] args) { // create char variables char a = '5'; char b = 'c'; // ASCII value…
Write a java program to convert Character to string and Vice versa Here we will take three different examples to understand this program. Example 1: Convert char to String Example…
Write a program to find all roots of a quadratic equation. To understand this program, you need to have understanding of if else statement and math.sqrt method. Approach: First of…
Write a program to find the largest among three numbers. This program demonstrated about use of 'if' with 'else If' statement. public class LargestAmongThree { public static void main(String[] args)…
Write a program to check whether an alphabet is vowel or consonant. To understand this program, you should have knowledge of basic if-else statement. There are 6 Vowels in alphabets…
Write a program to check whether a number is even or odd. Using If...Else statement import java.util.Scanner; public class CheckEvenOdd { public static void main(String[] args) { Scanner reader =…
Write a Program to Swap two numbers. Now, there are different way of doing it. By using temporary variable. Other swapping technique is done without using temporary variable. lets see…
Write a Program to Compute Quotient and Remainder public class CalculateQuotientRemainder { public static void main(String[] args) { int dividend = 27, divisor = 5; int quotient = dividend /…
Write a program to find ASCII value. public class AsciiValueCharacter { public static void main(String[] args) { char ch = 'a'; int ascii = ch; // You can also cast…