Skip to content
Download Android App: Follow Us:
Simple2Code
  • Home
  • Java
    • Java Tutorial
    • Java Programs
    • Java Pattern Programs
  • C
    • C Tutorial
    • C Programs
  • C++
    • C++ Tutorial
    • C++ Programs
  • C#
    • C# Tutorial
    • C# Programs
  • Apps
  • Blog
  • About Us

java string program

Java Program to Count the Number of Words present in a String using HashMap

Counting words in java using HashMap: This program demonstrates the use of HashMap in java to count the number of words.First, we take the string from user input using Scanner class and store it in a string “str“. After then, …

Read moreJava Program to Count the Number of Words present in a String using HashMap

Categories Java Programs Tags java string program

Java Program to Remove all White Spaces from a String

White Space removal program in java:In this post, we will learn how to remove white spaces from a string in java. We will learn the two ways to remove white spaces in java. First by using in-built methods called replaceAll() …

Read moreJava Program to Remove all White Spaces from a String

Categories Java Programs Tags java string program

Java Program to find the Duplicate Characters in a String

We write a program to find duplicate characters in a string in java. For example, consider a string “nut cutter“, duplicate characters in it are : u: 2, t : 3. Program Approach: First, we created a string variable and …

Read moreJava Program to find the Duplicate Characters in a String

Categories Java Programs Tags java string program

Java Program to Check Whether Two Strings are Anagram Or Not

This article on Anagram Program in java is to check for the two strings for Anagrams.Let start by understanding What is Anagram? What is Anagram? Two strings are said to be in an anagram if they contain the same set …

Read moreJava Program to Check Whether Two Strings are Anagram Or Not

Categories Java Programs Tags java string program

Java Program to Check the String for Palindrome

Palindrome: A string is said to be in a Palindrome if it remains the same when its elements are reversed or are the same as forward. For example: 14141, 777, 272 are palindrome numbers as they remain the same even …

Read moreJava Program to Check the String for Palindrome

Categories Java Programs Tags java string program

Java Program to Reverse a String

In this tutorial, we will write a program to reverse a string in Java. It means displaying the string from backward. Consider the string reverse, we write a java program in various ways to reverse it and it will be …

Read moreJava Program to Reverse a String

Categories Java Programs Tags java string program

Java Program to Remove all the Vowels from a String

This post shows, How to remove all vowels from a string in java? with the help of replaceAll() method. Remove vowels from a string in java: Explanation:Removing vowels in java is easy, we will take the user input with the …

Read moreJava Program to Remove all the Vowels from a String

Categories Java Programs Tags java string program
Newer posts
← Previous Page1 Page2

More Topics

  • Java Program to find the sum of the Largest Forward Diagonal
    28 April 2024
  • C Program to search an element in an array using Pointers
    7 January 2024
  • C Program to find the sum of the digits of a number using recursion function
    7 January 2024
  • C program to find factorial of a numberĀ using Ternary operator with Recursion
    6 January 2024
  • C Program to Add Two Numbers Using Call by Reference
    6 January 2024
  • Find the output ab, cd, ef, g for the input a,b,c,d,e,f,g in Javascript and Python
    1 February 2023
  • String Pattern Programs in C
    29 July 2022

Categories

  • C Programs
  • C Tutorial
  • computer fundamentals
  • CPlusPlus Programs
  • CPlusPlus Tutorial
  • CSharp Programs
  • CSharp Tutorial
  • HTML
  • Java Programs
  • Java Tutorial
  • javascript
  • Uncategorised

Simple2Code

  • About Us
  • Privacy Policy
  • Disclaimer
  • Sitemap

Search

Follow Us:
Copyright © 2025 Simple2Code