Tag: nextLine
-
How to find the minimum and maximum length strings in a sentence of strings using stream
This is the third solution to find the maximum and minimum length strings from a given input sentence of strings, using the reduce() methods of stream.
-
How to reverse each word in a given sentence
This is the fourth solution to reverse each word of given line of strings. This program uses the map() method of java stream, and reverse() method of StringBuffer.
-
How to find strings with no vowels in a file
This is the second solution to find all the strings with no vowels, in a given file. This approach uses the FileReader, Scanner, StringTokenizer, and Pattern class of Java regular expressions.
-
How to count number of occurrences of a given word in a file
This is the second solution to count the number of occurrences of a given string in the file. This approach uses the FileReader, Scanner, and String class methods.
-
How to find and replace a given string with new string in a file
This is the second solution to find and replace a given string with a new string in a file. This approach uses the FileReader, Scanner, FileWriter, BufferedWriter, and String methods.
-
How to find reverse of an integer value using the core logic
This is the fourth solution to find the reverse of an integer value, by using the core logic of forming the number in the reverse order.
