What is wrong with the following program statement? How can it be fixed?

```
System.out.println ("To be or not to be, that is the
question.");
```

The string to be printed is not all on one line. The problem can be fixed by splitting the long string into two and using the string concatenation operator (+) to reconstruct it, or by using a print statement for part of the string and a println statement for the remainder of the string.

Computer Science & Information Technology

You might also like to view...

The primary propagation method for a virus is instant messaging

Indicate whether the statement is true or false.

Computer Science & Information Technology

Which of the following function prototypes is correct?

a) double average(int, ...) b) double average(..., int); c) double average(int, ...); d) double average(int, ... , int);

Computer Science & Information Technology