CORE JAVA PROGRAMMING - Topics

CORE JAVA PROGRAMMING - Practice Problems

CORE JAVA PROGRAMMING - Practice Problems

1. Program to Check if a String contains only digits?

Tutorial

2. Program to perform Deep Copy for String?

Tutorial

3. Program to prove String is immutable programmatically?

Tutorial

4. Program to remove all occurrences of a given character from input String?

Tutorial

5. Program to append the string using StringBuffer class

Tutorial

6. Program to insert the string using StringBuffer class

Tutorial

7. Program to Add Characters to a String

Tutorial

8. Program to Add Characters to a String

Tutorial

9. Program to Check Anagram

Tutorial

Explanation -

Two Strings are called the anagram if they contain the same characters. However, the order or sequence of the characters can be different.

10. Program to check whether a string is a Palindrome

Tutorial

11. Program to Convert Enum to String

Tutorial

12. Program to Convert String to String Array

Tutorial

13. Program to count number of words in a String?

Tutorial

14. Program to count the total number of characters in a string

Tutorial

15. Program to count the total number of punctuation characters exists in a String

Tutorial

16. Program to count the total number of vowels and consonants in a string

Tutorial

17. Program to determine whether a given string is palindrome

Tutorial

18. Program to determine whether one string is a rotation of another

Tutorial

19. Program to divide a string in 'N' equal parts.

Tutorial

20. Program to find all subsets of a string

Tutorial

21. Program to find all the permutations of a string

Tutorial

22. Program to find maximum and minimum occurring character in a string

Tutorial

23. Program to find Reverse of the string

Tutorial

24. Program to find the duplicate characters in a string

Tutorial

25. Program to find the duplicate words in a string

Tutorial

26. Program to find the frequency of characters

Tutorial

27. Program to find the largest and smallest word in a string

Tutorial

28. Program to find the longest repeating sequence in a string

Tutorial

29. Program to find the most repeated word in a text file

Tutorial

30. Program to find the number of the words in the given text file

Tutorial

31. Program to Get a Character From the Given String

Tutorial

32. Program to Insert a string into another string

Tutorial

33. Program to Iterate Over Characters in String

Tutorial

34. Program to Print a New Line in String

Tutorial

35. Program to Print even length words

Tutorial

36. Program to print smallest and biggest possible palindrome word in a given string

Tutorial

37. Program to remove all the white spaces from a string

Tutorial

38. Program to replace lower-case characters with upper-case and vice-versa

Tutorial

39. Program to replace the spaces of a string with a specific character

Tutorial

40. Program to separate the Individual Characters from a String

Tutorial

41. Program to Splitting into a number of sub-strings

Tutorial

42. Program to swap two string variables without using third or temp variable.

Tutorial

43. Program to Swapping Pair of Characters

Tutorial

Explanation -

Enter the string from user and enter the characters that you want to swap with one another

44. Read two String user input and check if first contains second?

Tutorial

45. Reserve String without reverse() function

Tutorial

46. Reverse String Word by Word

Tutorial

47. Write a program to check if two Strings are created with same characters?

Tutorial

48. Write a program to find out first non repeated character from input String?

Tutorial

49. Create an object StringBuffer class to reverse the string.

Tutorial

50. Create an object StringBuffer class to show functionality of insert, append, delete and replace functions.

Tutorial

Expand Your Horizons with Our Free YouTube Courses

Our comprehensive YouTube courses cover a wide range of computer science and IT subjects. Each course is carefully crafted to provide you with a solid foundation and a deeper understanding of the topic. Explore our playlist of free courses and learn at your own pace. Stay ahead of the curve and boost your knowledge with our engaging video lectures.

Java Course

Learn Now

Data Structures Course

Learn Now

DBMS Course

Learn Now