I know that following similar thing is possible:-
- to delete a character from an array(by replacing with bblank space)
I know that following similar thing is possible:-
You cannot delete an index from an array. This is because arrays have a fixed length that cannot be changed. If you want a list which you can delete elements, check out the ArrayList class. Here is the documentation: http://docs.oracle.com/javase/7/docs/api/java/util/ArrayList.html