Top "Syntax-error" questions

A syntax error occurs when a program does not follow the syntactical rules of the programming language.

Java syntax error on tokens, misplaced constructs - array initialization

I have the following code in Java 5: for (Object o : theList) { for (int k=0; k<theList.size(); k++) int[][] …

java arrays syntax-error array-initialization
Why is Pydev giving a syntax error for built-in keywords?

Why is Pydev giving me syntax errors for built-in python functions like str()? Undefined variable: str Undefined variable: False Undefined …

python eclipse syntax-error pydev
ClassNotFoundException Java Applet

I get the ClassNotFoundException error when I make my html file with the code and jar file. Not sure why. …

java applet syntax-error japplet
javascript - catch SyntaxError and run alternate function

I'm trying to build something on javascript that I can have an input that can be everything like string, xml, …

javascript try-catch quotes syntax-error spidermonkey
NodeJS script with async/await causing syntax error (v7.10.0)

I am trying to use async/await in NodeJS but my script is throwing a syntax error. I was under …

node.js async-await syntax-error
Get-ADUser not recognized

I'm trying to write a script for Powershell that will display the date/time of last login and date/time …

powershell file directory syntax-error ou
SQLCMD utility from BAT file - how to return ERRORLEVEL in case of syntax error

How can I get %ERRORLEVEL% from SQLCMD utility when some of .sql files contains syntax error? These files create stored …

sql batch-file syntax-error sqlcmd
Groovy map syntax error

If I have this code : import javax.swing.* import java.awt.image.* def xMap = [ BufferedImage.TYPE_3BYTE_BGR : "3 byte BGR", …

groovy map syntax-error
Javascript - SyntaxError: Invalid or unexpected token - while creating object - Invisible character

I was reading the article on Javascript Objects (http://javascriptissexy.com/javascript-objects-in-detail/), so I copy-pasted the following code into my …

javascript syntax-error console.log object-literal
The type java.rmi.RemoteException cannot be resolved. It is indirectly referenced from required .class files error in java

I'm really new to Java and trying to call web-service. I have taken a code from net String message = ""; static …

java web-services jar syntax-error remoteexception