In my first technique i want to delete a component at a position but instead of deleting, it variations the element to 0.
@Override
public void delete AtPostion(int position) {
size-- ;
for (int i = 0; i < list.length; i++){
if (i == position){
list = list [size];
} } }
In the other technique i want to delete a value, but instead of deleting a value from list, it find the location instead of value and sub stracts by 1..
eg: if my input value is to delete 3, instead if sub stracts 1 from position 3.
public void delete Values(int value) {
size-- ;
for (int i = 0;i < list.length; i++)
if (value == list ) {
list [ value]--;
}
}
what do i need to alter, to make it work the way i need??
Array not deleting?
Other related stuff
-
- Posts: 2
- Joined: 03 Jun 2016, 12:07
- Has thanked: 0
- Been thanked: 0
Jump to
- Madsonic
- ↳ Info / Announcements
- ↳ Voting Polls
- ↳ Madsonic Client
- ↳ Support
- ↳ Feature Requests
- ↳ Madsonic Node
- ↳ Support
- ↳ Feature Requests
- ↳ Madsonic Server
- ↳ Info
- ↳ Support
- ↳ Feature Requests
- ↳ Plugins & Addons
- ↳ Docker
- ↳ UnRAID
- ↳ FreeBSD
- ↳ FreeNAS
- ↳ Synology
- ↳ QNAP
- ↳ OpenMediaVault
- ↳ Netgear
- ↳ Asustor
- ↳ MusicBee
- ↳ Tomahawk
- ↳ XBMC
- ↳ Clementine
- ↳ KODI
- General
- ↳ Info
- ↳ Announcements
- ↳ Voting Polls
- ↳ General
- ↳ Development
- ↳ Development Voting Polls
- ↳ Client 6.x
- ↳ Info
- ↳ Support
- ↳ Bug Reports
- ↳ Feature Requests
- ↳ Solved Requests
- ↳ Server 5.x
- ↳ Support 5.x
- ↳ Bug Reports 5.x
- ↳ Feature Requests 5.x
- ↳ Server 6.x
- ↳ Info
- ↳ Support 6.x
- ↳ Bug Reports 6.x
- ↳ Feature Requests 6.x
- ↳ Solved Requests
- ↳ Node 6.x
- ↳ Info
- ↳ Support
- ↳ Download
- ↳ Madsonic 6.x
- ↳ Madsonic Transcoding
- ↳ Player / Tools / Themes
- ↳ Scripts
- ↳ Off Topic