List access apex

List<String> strList = new List<String> {'one', 'two', 'three'} // indices -0- -1- -2- // access first element strList[0]; // one // access second element strList[1]; // two // access third element strList[2]; // three // access list length strList.size(); // 3

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.