In this program, our task is to remove all the white-spaces from the string. For this purpose, we need to traverse the string and check if any character of the string is matched with a white-space character or not. If so, use any built-in method like replace() with a blank.
[mai mult...]Java program to count the total number of punctuation characters exists in a string
We are going to create a Java program that counts the total number of punctuations in a given string.
[mai mult...]Java program to count the total number of characters in a string
In this program, we need to count the number of characters present in the string.
[mai mult...]Java program to swap two numbers using bitwise operator
We will be creating a Java program to swap two numbers using bitwise operator (^).
[mai mult...]Java program to calculate the sum of natural numbers
In this program, you’ll learn to calculate the sum of natural numbers using for loop in Java.
[mai mult...]Java program to find factorial of a number
In this program, you’ll learn to find the factorial of a number using for loop in Java.
[mai mult...]Java program to check whether a character is alphabet or not
In this program, you’ll learn to check whether a given character is an alphabet or not.
[mai mult...]How to reverse a number using a while loop in Java
In this program, you’ll learn to reverse a number using a while loop in Java.
[mai mult...]Cum se sterge un grup in linux din terminal
Stergere grup din terminal in linux.
[mai mult...]Cum se sterge un user in linux din terminal
Stergere user din terminal in linux.
[mai mult...]