java

java

Java String toLowerCase and toUpperCase methods

Java String toLowerCase and toUpperCase methods explanation with examples. toLowerCase method is used to convert all characters of a string to lowercase and toUpperCase method is used to convert all characters to uppercase in Java.

Read
java

Java program to check if a number is Armstrong or not

Java program to check if a number is Armstrong or not in 2 different ways. The program will take a number as input from the user and print if the number is Armstrong or not.

Read
java

Java ArrayList addAll method explanation with examples

Java ArrayList addAll method explanation with different examples. Learn the definition of addAll with different examples. addAll can be used to add multiple elements to an ArrayList in Java.

Read
java

How to use try without catch in Java

How to use try without catch in Java. We can use try without a catch or finally block in Java. Let's learn it with an example.

Read
java

Java program to swap two numbers without using a third number

Java program to swap two numbers without using a third number. We can swap two numbers if we have a third number, but how can we swap two numbers without using a third number?

Read
java

Java program to remove all non-ASCII characters from a string

Java program to remove all characters that are non-ASCII. We will learn three different ways in Java to remove all characters from a string which are not ASCII.

Read
java

Java program to find the sum of digits of a number until a single digit is found

Java program to find the sum of digits in a number until a single digit is found. We will learn two different ways to do that in Java.

Read
java

4 different Java program to find the distances between two points

Java program to find the distance between points. We will learn 4 different ways to find the distance between two points with coordinates in Java.

Read
java

How to pass an array to function in Java

Java program to pass an array to a function. This post will show you how to pass an array to a function and how to access the items of that array in Java.

Read
java

Java program to find the roots of a quadratic equation

Java program to find the roots of a quadratic equation. This post will show you how to write a java program to find the roots of a quadratic equation by using user input values.

Read