我是新来的java,当我试图打印基本的Hello World程序时。我收到以下错误:“错误:(11,12)的java:未关闭的字符文字”java中的未封闭字符文字
package com.company;
public class Main {
public static void main(String[] args) {
//declare a variable
char a;
a = 'helloworld';
System.out.println("type the char value: " + a);
}
}
能否请你让我知道在哪里我犯了一个错误?
焦炭采取一个字符内 – ravthiru