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.
ReadJava 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.
ReadJava 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.
ReadHow 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.
ReadJava 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?
ReadJava 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.
ReadJava 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.
ReadJava program to find the distance between points. We will learn 4 different ways to find the distance between two points with coordinates in Java.
ReadJava 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.
ReadJava 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