How to print duplicate characters from string in java? Java program to count number of repeated characters in a string. Java program for printing a repetitive letters in... read more ?
Java program to check two strings are anagrams
Posted by: Instanceofjava Posted date: September 13, 2015 / comment : 0 Core java Interview Questions
(adsbygoogle = window.adsbygoogle || []).push({}); package com.javatutorial; import java.util.Arrays; public class CheckAnagramStrings { private static boolean isAnagram(String str1, String str2) { if (str1.length() !=... read more ?
Java Program to count number of vowels in a string
Posted by: Instanceofjava Posted date: September 13, 2015 / comment : 0 Core java Interview Questions
Solution #1: package com.javatutorial; public class CountNumberofVowels { public static void main(String[] args) { System.out.println("Please enter a String"); Scanner in = new Scanner(System.in); String input... read more ?
Java Program to Count the number of occurrences of a char in a String?
Posted by: Instanceofjava Posted date: September 13, 2015 / comment : 2 Core java Interview Questions
(adsbygoogle = window.adsbygoogle || []).push({}); Solution #1: package com.javatutorial; import java.util.Scanner; public class CountNumberofChars { public static void main(String[] args) { String str =... read more ?
Java program To Count the number of words in a String
Posted by: Instanceofjava Posted date: September 13, 2015 / comment : 1 Core java Interview Questions
(adsbygoogle = window.adsbygoogle || []).push({}); package com.javatutorial; public class CountNumberofWords { public static void main(String[] args) { String s=""; int count=0; Scanner in =... read more ?
Pattern Program in java Part-3
Posted by: Instanceofjava Posted date: September 13, 2015 / comment : 0 concept and program
Program #1: java program to print pyramid of stars using for loop in below format * ** *** **** ***** ****** ******* ******** ********* ********** (adsbygoogle = window.adsbygoogle... read more ?
Pattern Program in java Part-2
Posted by: Instanceofjava Posted date: September 06, 2015 / comment : 0 concept and program
#4 Java Program to print Numbers in Below pattern 1 2 3 4 5 6 7 8 9 1 2 3 4 5 6 7 8 1... read more ?