0

I have an array called numbers.

numbers = [1,2,3,...,8,9,10]

But In the middle of the array, I want to insert section of value, for example: a,b,c where a,b,c are under list no 5.

numbers = [1,2,3,4,5,a,b,c,6,7,...]

Actually, I want to make a multilevel list

1
2
3
4
5
  a
  b
  c
6
7
8
9
10

Any idea or help will really be appreciated

Mohammad Usman
  • 37,952
  • 20
  • 92
  • 95
noorayu
  • 21
  • 1
  • 1
  • 4
  • 2
    Tell us what have you tried – syntagma May 21 '18 at 08:34
  • 2
    Possible duplicate of [How to insert an item into an array at a specific index?](https://stackoverflow.com/questions/586182/how-to-insert-an-item-into-an-array-at-a-specific-index) – Aleksey L. May 21 '18 at 08:40
  • @syntagma I have been watching tuts for multidimensional array. am i on the right direction? – noorayu May 21 '18 at 12:46
  • @noorayu, you are dealing with one-dimensional array, so no. It would help if you would show some us code. – syntagma May 21 '18 at 13:02

0 Answers0