Category

Java Programs

<img class="alignnone size-medium wp-image-9325" src="https://simple2code.com/wp-content/uploads/2021/10/pattern-icon-300x300.png" alt="java pattern program app" width="300" height="300" />

227 posts

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 help of a Scanner class. we will use replaceAll() which takes in two para

June 12, 2026Read more →

Java Program to Print Multiplication Table

In this tutorial, we will write a Java program to print a multiplication table for any number. Before that, you may go through the following topic in java. Java – while loop Java Program to Print Multiplication Table using for loop Source code: The user needs to enter the number for which the

July 13, 2022Read more →

Mystery Number in Java

In this tutorial, we will write a Java program to check if a number is a Mystery Number. Before that, we may go through the following topic in java. methods in Java A mystery number is a number that can be expressed as the sum of two numbers and those two numbers should be the … Read more

July 4, 2022Read more →

Sum of rows and columns in 2d Array in Java

In this tutorial, we will write two different programs to sum the row elements and column elements separately. You may go through the following topic. Java – Arrays Sum of the columns in Java Output: sum of 1 col: 12sum of 2 col: 15sum of 3 col: 18 Sum of the rows in Java Output: … Read more

June 27, 2022Read more →

Find a pair with the Given Sum in an Array in Java

In this tutorial, we will write a java program to find the sum pair in an array. Before that, you may go through the following topics in java. for loop if statement The program takes a user input for a number of elements in an array and then the value of elements. After that, the … Read more

May 16, 2022Read more →