java errors in dr java -


I have import java.util.ArrayList; () and then I got 2 different types of errors they are:

  Error: the type of expression should be an array type, but it is java.util.ArrayList & lt ; Java.lang.Integer & gt;   

and:

  error: the length can not be fixed or the field is not   

Can you tell me what they mean? I have finally tried to change the length statements by adding () but causes more errors than I started then

For an ArrayList you get the number of elements. Length. You can not treat ArrayList just like the original array. Please provide some code samples for help with another error.

  int i = myList.size (); Edit:  

I have just seen that someone in fact has already mentioned any other questions you have already made.

Since you try to develop a method of community-coding, so that you have some tips for development and can save some nerves to the community;)

Java Doc Try to open it in the browser while you code:

If you want to experiment with an ArrayList, then look at that method and properties, generally, how to use proper tutorials such as links, such as archive classes Here's a question Instead of posting Javadak is likely to browse quickly and this will give you a nice general picture of the original Java classes.

Comments