Convering String to inputStream java
There are a number of places where string would be needed to be changed to InputStream object. For example the Dom parser would expect an InputStream for the creation of its DocumentBuilder
Here is the simple yet powerful single line doing the task!!
inputStream = new ByteArrayInputStream(string.getBytes("UTF-8"));
See how you would solve these known algorithm problems
binary tree problems with solutionJava solution for checking anagram strings – tell if phrases are anagrams
Check if two strings are anagrams or not
Find the pairs that makes K Complementary in the given array java solution
Find the first occurence of number in the sorted array
Find longest palindrom from sequence of characters
Flatten nested javascript array
Implement Queue Using two Stacks – JavaScript algorithm
find longest word in the sentence
Check if there are three numbers a, b, c giving a total T from array A