function readOnly(count){ }
Don't have an account?
Search for an answer or ask a question of the zone or Customer Support.
You need to sign in to do that
Sign in to start searching questions
Signup for a Developer Edition
Sign in to start a discussion
List<String> colors = new String[1];
String[] colors = new String[1];
List<Integer> ints = new Integer[6];
//Defines an Integer list with memory allocated for six Integers List<Integer> ints = new Integer[6];
Please follow below code:-
if you need any assistanse, Please let me know!!
Kindly mark my solution as the best answer if it helps you.
Thanks
Mukesh
All Answers
Yes, you can predefined length of the list.
ex:
Refer the below help article.
https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/langCon_apex_collections_lists.htm
if this helps, Please mark it as best answer.
Thanks!!
Please follow below code:-
if you need any assistanse, Please let me know!!
Kindly mark my solution as the best answer if it helps you.
Thanks
Mukesh