string array help (eg edit, delete, add, etc..) java
program that calls data from an external txt file.....i already have code for reading then sorting the items by their various categories (costP, desc, stockqty, etc) wen i sort one string the others are sorted
however i have nooo idea how to add or remove values to the strings.....i need to be able to search and delete an item from one category and all corresponding values or data on this item will be removed from other strings as well (corresponding items are sorted in parallel) and wen i add an item i need to get the option to add all its corresponding values!! any help will be appreciated thanks...
Re: string array help (eg edit, delete, add, etc..) java
ok so i did this to add an element but all it does is replace the last value in the catList with the typed string and adds null values to a new string after the last one...
public static String addcatListElement()
System.out.println("Enter category of new part>");
catList[count++] = keyboard.next();
|All times are GMT +5.5. The time now is 20:16.|