I have a console application where I need to read the console inputs as separated by line instead of separated by spaces. Is this possible?
public static void main(String[] args) {
Here the args is a string array and each console input separated by a space will be a separate member in args[]. I need to avoid this. For example , if the input is
word1 word2
line2
line3
i need to read it as
args[0] = word1 word2
args[1] = line2
args[2] = line3