How to move a value in array?

Ads
 

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

Ads









Related Tutorials/Questions & Answers:
How to move a value in array?
How to move a value in array?
Advertisements
How to concatenate two arrays in Java?
swap two integer arrays
swap two integer arrays
swap two integer arrays
ModuleNotFoundError: No module named 'odoo11-addon-stock-move-value-report'
how to compare 2 arrays using java?
how to move label in jframe in java?
Arrays
how to get radio value
how to move pointer in Textfield to newline
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
How to save value in JSP
Arrays
how to archive cllocation value
how to archive cllocation value
How to move a file from a directory to other directory
arrays
arrays
arrays
Arrays
arrays
arrays
arrays
how to set the value of textfield constant
C Array copy example

Ads