Answers for "whats an array"

1

Array

// this is sumple array
let array=[1,2,3,4]
Posted by: Guest on September-10-2021
3

What is Array?

• An array is a container object that holds a fixed number 
of values of a single type. The length of an array is established 
when the array is created. After creation, its length is fixed. 
You have seen an example of arrays already, in the main 
method of the "Hello World!" application.
This section discusses arrays in greater detail. 
• Each item in an array is called an element, 
and each element is accessed by its numerical index.

• Advantage of Java Array 
o Code Optimization: It makes the code optimized, 
we can retrieve or sort the data easily. 
o Random access: We can get any data located at any index position. 
• Disadvantage of Java Array 
o Size Limit: We can store only fixed size of elements in the array. 
It doesn't grow its size at runtime. To solve this 
problem, collection framework is used in java.
Posted by: Guest on May-16-2021
0

array

<!DOCTYPE html>
<html>
   <body>
      <script>
         var str = ["1818-15-3", "1819-16-3"];
         var arr = str.split(":");

         document.write(arr[1] + ":" + arr[2]);
     </script>
   </body>
</html>
Posted by: Guest on May-22-2021
0

array

$ git config --global user.name "Yad Sallivann"
$ git config --global user.email [email protected]
Posted by: Guest on June-13-2021
0

array

const person = ["John", "Doe", 46];
Posted by: Guest on September-23-2021
0

array

from array import *
array_num = array('i', [1,3,5,7,9])
for i in array_num:
    print(i)
print("Access first three items individually")
print(array_num[0])
print(array_num[1])
print(array_num[2])
Posted by: Guest on May-16-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language