To display text on our screen, we will use built-in function print(). It will print back arguments provided in the function.
In this article we’ll how to write a program to displays “Hello, World!
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(%).