Idea. Java's command line.
-
I have a situation like this, as an example of the target, these are the entry data.
25 80
9876543210987654321098765432109876543
9876543210987654321098765432109876543
9876543210987654321098765432109876543In the first line of the data entry, the user shall inject numbers N and M, Then N Lines of M Each symbol
When I'm in the idea, in the programm parameter, the arguments give an example of the situation, he changes it like that:
25
80
9876543210987654321098765432109876543
9876543210987654321098765432109876543
9876543210987654321098765432109876543And the steaming of the lines doesn't become necessary, and all the activities of the programme are moving into one line and working incorrectly. Idea automatically breaks the first line into two, where there is a gap. So the question is, when my program is going to check the computer, it's gonna be a line in the program as long as there's a gap, or two lines without a break?
I hope I understand the problem.
-
The division of command lines arguments is a gap. Since the first two are divided by a gap, the system considers them two different arguments. In order to pass a line containing a gap, it needs to be in the skirts. Therefore, in this case, the parameters should be transmitted as follows:
program_name "25 80" 98...