public Properties prop = new Properties();
I get an illegal start of expression error when I try this code snippet. I couldnt figure out what was wrong though.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Most probably you have used this construction inside of a method or constructor.
“public” keyword is allowed for classes, class fields, and methods, but is not allowed for local variables.
Solution: remove “public” from your
propdeclaration.