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 Programs

java pattern program app

Java Program to Print Pyramid Pattern of Stars

This article will show you how to print a simple pyramid pattern of stars in java. Patterns are one of the easiest ways to improve the coding skills for java. The frequent use of loops can increase your skills and printing pattern …

Read moreJava Program to Print Pyramid Pattern of Stars

Categories Java Programs Tags java pattern program, java star pattern

Java Program to Find the Second Largest Number in an Array

This is a tutorial on how to write a java program to display the second largest element in an array. Find the second-largest element in an array: In the below program, we take the user input for How many elements …

Read moreJava Program to Find the Second Largest Number in an Array

Categories Java Programs Tags java array 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 find the Square Root of a Number

This post shows how to find a square root of a number in java. We will learn two methods to find the square root one by an in-built math method called Math.sqrt() and the other by using do-while loop.let’s begin. …

Read moreJava Program to find the Square Root of a Number

Categories Java Programs Tags java number programs

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 Remove Duplicates from ArrayList

In this tutorial, we will learn to write a Java program to remove duplicates from an ArrayList, we will learn to remove duplicate elements by various approaches. ArrayList is a collection type used mostly in java. It is the list …

Read moreJava Program to Remove Duplicates from ArrayList

Categories Java Programs Tags java array 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 whether the Number is Palindrome or not using While loop

What is a palindrome number? A number is said to be a Palindrome number if it remains the same when its digits are reversed or are the same as forward. It is also applied to the word, phrase, or other …

Read moreJava Program to Check whether the Number is Palindrome or not using While loop

Categories Java Programs Tags java loop 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
Older posts
Newer posts
← Previous Page1 … Page19 Page20 Page21 … Page23 Next →

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