This isn't so much a question with a problem with a section of code but how it should be correctly laid out when a single lengthy sting is forced onto a separate line.
For example say I have the below line of text in a small text area.
JOptionPane.showMessageDialog(null, "The start position must be > 0 and the stop
position must be < 12, please try again.");
I realise the function of the above code is not hindered by the format but is this the correct way to lay it out? A friend mentioned legally it should be done with concatenation, for example.
JOptionPane.showMessageDialog(null, "The start position must be > 0 and the stop"
+ "position must be < 12, please try again.");
I'll be grateful for any advice.