Code: Select all
public class Main {
public static void main(String[] args) {
System.out.println("Hello PEX!");
}
}
It does occur if the selection starts anywhere and includes the full quoted text with quotes. Examples:
- Start with 'public' end with the '}' terminating the main method.
- Start with System and end with the semicolon.
The error does not occur unless the entire quoted string with quotes is selected.
The error occurs if the text in quotes includes an exclamation mark at the end. Example:
- yes: "test!"
- yes: "anything here!"
- no: "test"
- no: "test!foo"
When the error is displayed, it doesn't include the exclamation mark: "Hello PEX!" is displayed as "Hello PEX".
The error occurs on ctrl-x to cut or ctrl-c to copy, not on paste.
HTH. Thanks.