Hi,
I am trying to read multi line user input, which I don't know the count of those lines. Is there any way to do it.
Eg:
User will give one sample piece of code like below we have to read complete code without skipping content. As it is a piece of code we cannot get number of lines we have to read.
import java.io.*;
public class SquareNum {
public static void main(String args[]) throws IOException
{
System.out.println("This is a small Java Program!");
}
}
Thanks