Unclosed Character Literal error

In Java, single quotes can only take one character, with escape if necessary. You need to use full quotation marks as follows for strings: You also used which I assume should be Note: When making char values (you’ll likely use them later) you need single quotes. For example:

Java end of file

Task: Each line will contain a non-empty string. Read until EOF. For each line, print the line number followed by a single space and the line content. Sample Input: Sample Output:

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)