How to move a value in array?

How to move a value in array?

Enter value at the End: 5

Display Array Elements Index at [0]0 Index at [1]0 Index at [2]0 Index at [3]5

Enter value at the End again 8

Display Array Elements Index at [0]0 Index at [1]0 Index at [2]5 Index at [3]8

Enter value at the beginning: 7 Index at [0]7 Index at [1]0 Index at [2]5 Index at [3]8

Enter value at the beginning: 1 Display Array Elements Index at [0]1 Index at [1]7 Index at [2]5 Index at [3]5

--- theres something wrong...pls help me fix this problem. when you insert value at the beginning which is 1 ,so it will input like this: Index at [0]1 Index at [1]7 Index at [2]5 Index at [3]8

and when i enter 0 in last index it will move and if i enter again zero in last index it will not move anymore... pls help..thank you:)

View Answers









Related Tutorials/Questions & Answers:
How to move a value in array?
How to move a value in array?
Advertisements
How to Append Arrays in PHP
How to create arrays in JavaScript?
ModuleNotFoundError: No module named 'odoo11-addon-stock-move-value-report'
swap two integer arrays
swap two integer arrays
swap two integer arrays
How to concatenate two arrays in Java?
how to move label in jframe in java?
how to move file in python script
Arrays
how to move pointer in Textfield to newline
how to compare 2 arrays using java?
Arrays
How to move a file from a directory to other directory
arrays
arrays
Comparing Arrays
arrays
java arrays
C Array copy example
Arrays
arrays
arrays
arrays
How To Move Image Smoothly
PHP Sorting Arrays Tutorial
multidimensional arrays
java 2d arrays
how to get radio value
Iterating java arrays
how to update the value of jslider
how to update the value of jslider
how to update the value of jslider
how to update the value of jslider
how to update the value of jslider
create arrays in JavaScript
How to save value in JSP
how to archive cllocation value
how to archive cllocation value
Java file move
how to set the value of textfield constant
Are arrays primitive data types?
java arrays
Arrays in java
how to get the checkbox value in jsp
how to select second combobox value .
Java Arrays Tutorials
Converting java arrays into list

Ads