If any number is exactly divisible by 2 then it’s an even number else it’s an odd number.
In this tutorial we’ll see how to check whether the provided number is even or odd number using Modulo(%).
In this article, we explain a way to find length of a string using built-in len() function, for e.g, length of "Earth is a beautiful planet in Solar System" is 43 (including space).
In this article we’ll see a program to mixup characters of 2 string in JAVA.
Input Consider a two strings as Good and Day.
Code public class StringMixup { public static void main(String[] args) { String str1 = "Good", str2 = "Day"; int i = 0, str1Length = str1.
If any number is exactly divisible by 2 then it’s an even number else it’s an odd number.
In this tutorial we’ll see how to check whether the provided number is even or odd number using Modulo(%).