i have a class called (User) and i want to make a multidimensional array of it
i have wrote
static User [][] userlist=new User[6][];
and i have a compiler error that is :
illegal start of expression
thanks a lot .
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.
Here’s an example of a 5×5 2-dimensional array:
The static part really makes no difference; just declare the member as static.