I got this error: "illegal start of expression" while defining static variable. I noticed that it works few minutes ago.
Code:
class Demo{
Demo() {
static int a = 7;
}
}
Thanks!
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
AartiPosted Nov 17, 2011, 4:26 AM
VulpesPosted Aug 4, 2011, 9:30 AM
Zoran HorvatPosted Aug 4, 2011, 7:44 AM
Zoran