Multiple markers at this line - Syntax error on token ")", ; expected - void is an invalid type for the variable main - Syntax error on token "(", ; expected
package imooc;
import javax.ejb.Stateless;
/**
?* Session Bean implementation class IMOOC
?*/
@Stateless
public class IMOOC implements IMOOCLocal {
/**
? ? ?* Default constructor.?
? ? ?*/
? ? public IMOOC(){?
? ? public static void main(String[] args)
? ? {
? ? String hoyyb="慕課網(wǎng)";
? ? System.out.println(hoyyb);
? ?
? ? }
? ? ? ??
? ? }
}
2016-09-08
2020-05-17
這個(gè)問(wèn)題怎么解決的?
2016-09-09
可能是你的括號(hào)的輸入法沒(méi)有切換成英文格式的,所以報(bào)錯(cuò)哦,你改下試試!