Category Archives: Java String Programs

Counting Vowels in String Java Program

Topic: Counting Vowels in String Java, Counting Vowels in User Supplied String Java Program This topic covers – How to count the number of vowels in a give string using a Java Program. Source Code: import java.util.Scanner; public class CountingVowels { public static void main(String args[]){ int count = 0; System.out.println(“Enter a sentence :”); Scanner… Read More »


Java Palindrome String Check

Task: Write down a Java String Program to check for Palindrome. The Source Code of Java Program Check for Palindrome import java.util.Scanner; /** * * @author */ public class StringPalindrome { public static void main(String[] args) { Scanner input = new Scanner(; System.out.print(“Enter a String to check for Palindrome: “); String s1=input.nextLine(); String s2=””;… Read More »