Skip to content

singhvirendra18gmailcom/Java-code-challenges

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Java-code-challenges

Java-code-challenges

this repository contains coding problems related to String abd their solutions.

Challenge 1) Print duplicate characters from String? \n Challenge 2) check if two Strings are anagrams of each other? Challenge 3) print first non repeated character from String? Challenge 4) How to reverse String in Java using Iteration and Recursion? Challenge 5) How to check if a String contains only digits?
Challenge 6) How to find duplicate characters in a String? Challenge 7) How to count number of vowels and consonants in a String? Challenge 8) How to count occurrence of a given character in String? Challenge 9) A classical coding interview question based upon String. You need to write a method like atoi() from C/C++, which takes a numeric String and return its int equivalent. For example, if you pass "67263" to the program then it should return 67263. Challenge 10) How to replace each given character to other e.g. blank with %20? Challenge 11) How to find all permutations of String? Challenge 12) How to reverse words in a sentence without using library method? Challenge 13) How to check if String is Palindrome? Challenge 14) How to remove duplicate characters from String? Challenge 16) Validate xml tags structure ----to be done----- Challenge 17) How to return highest occurred character in a String? Challenge 18) Write a program to remove a given characters from String? Challenge 19) Write a program to find longest palindrome in a string? Challenge 20) How to sort String on their length in Java? Challenge 21)Write a program to check if a String contains another String e.g. indexOf()?