Home Answers Viewqa Java-Beginners How to move a value in array?

 
 


Grazie Lo
How to move a value in array?
0 Answer(s)      a year and 8 months ago
Posted in : Java Beginners

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 Pages:

Ask Questions?

If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.

Ask your questions, our development team will try to give answers to your questions.