I’m trying to create an array of long in java, but eclipse is showing me an error as shown below:
Below is my code:

How can I resolve this?
Can’t i create a long size array in java?
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.
Arrays of longs are fine:
long[]. But all arrays areint-indexed. So just changelong ntoint nin the method parameter declaration, and you’ll be all set.