Tag: append
-
How to find the substrings of a given string?
This is the complete solution to find the substrings of a given String. This solution is designed to solve the problem using an interface, super class and three derived classes implementing the interface.
-
How to find the nth Fibonacci number in the series?
This is the complete solution to find the nth Fibonacci number in the series. This solution is designed to solve the problem using an interface, super class and three derived classes implementing the interface.
-
How to check whether a String is eligible Palindrome or not?
This is the complete solution to check whether a given String is eligible for a Palindrome or not. This solution is designed to solve the problem using an interface, super class and three derived classes implementing the interface.
-
How to find intersection values of two Arrays
This is the third solution to find the intersection of two Arrays of integers. This program uses functional interface with single abstract method, and implementing by using lambda expression. The lambda expression accepts two arrays of integers data type. The internal logic is comparing each value of the first array with each of value of…
-
How to find intersection values of two Arrays
This is the second solution to find the intersection of two Arrays of integers or Strings or Characters. This program has one Generic method which accepts two arrays of any data type (Integers or Strings or Characters). The internal logic is comparing each value of the first array with each of value of the second…
-
How to find intersection values of two Arrays
This is the first solution to find the intersection of two Arrays of integers. This approach follows the core logic of comparing each of the first array with each of element of the second array. This program uses couple of StringBuilder’s class methods.
-
How to find and replace a given string with new string in a file
This is the first solution to find and replace a given string with a new string in a file. This approach uses the FileReader, BufferedReader, FileWriter, BufferedWriter, and StringBuffer methods.
-
How to count number of occurrences of a given word in a file
This is the first solution to count the number of occurrences of a given word in the file. This approach uses the FileReader, BufferedReader, and string buffer methods.
