Ok, let me set the tone. As of may first, I didn't even know a char from a string. Completely green. I'm taking a college course for networking that requires me to take basic java.

So far it's been ok, but I'm struggling with my latest assignment. I've hit the wall. In this particular part of the assignment I have an inventory system and need to code a method to modify a stored array value.

The problem I am having is that when I enter more than one value and attempt to modify the second or third value the program returns the first value.

My thoughts: I believe I am having the problem because I am initializing the variables to 0 or the first value. The problem is whenever I try to fix it i get compile errors out the ying.

Here is the chunk of code I'm having issues with, I am open to any suggestions or comments but please keep in mind that I am not very knowledgable so you may have to "dumb it down" a bit.


Code:
	declare modify method
	********************************************************************************************************************************************/  //

	  public static void modify(String invItem[],String itemDesc[], double unitPrice[], int qoh[], int currStock)
	  {

			String modify, newDesc=null;
			double newUnitPrice=0;
			int index=0,newQoh=0,j=0;
			boolean decision=true;



		 	System.out.print("\n\tEnter an item number to modify:  ");
		  	modify=TextIO.getlnString();
		  	modify=modify.toUpperCase();

			index = search(invItem, modify);



			if(index !=-1)
			{
				for(int i=index; i < currStock -1; i++)
				{

				j=i+1;

				invItem[i]=invItem[j];
				itemDesc[i]=itemDesc[j];
				unitPrice[i]=unitPrice[j];
				qoh[i]=qoh[j];

				}

				System.out.print("\n\t\tModify old description: " + itemDesc[j] + "(y/n)");
				decision=TextIO.getlnBoolean();

						if(decision)
						 {
						System.out.print("\n\tEnter new item description: ");
						newDesc=TextIO.getlnString();
						newDesc=itemDesc[j];
						 }
						 else if (decision == false)
						 {
									System.out.print("\n\t\tModify old unit price: " + unitPrice[j] + "(y/n)");
									decision=TextIO.getlnBoolean();


											if (decision)
		  									 {
											System.out.print("\n\tEnter new unit price: ");
											newUnitPrice=TextIO.getlnDouble();
											newUnitPrice=unitPrice[j];
											 }
											 else if (decision == false)
											 {

													System.out.print("\n\t\tModify old qoh: " + qoh[j] + "(y/n)");
													decision=TextIO.getlnBoolean();

													if (decision)
													 {
													System.out.print("\n\tEnter new qoh: ");
													newQoh=TextIO.getlnInt();
													newQoh=qoh[j];
													 }
													 else if (decision == false)
													 {
													 if (index == -1)
														 {
														  System.out.println("\n\t\t**ERROR8** THE ITEM ENTERED DOES NOT EXIST\n");
														 }
													 }
											 }
						 }

				itemDesc[j]=itemDesc[currStock];
				unitPrice[j]=unitPrice[currStock];
				qoh[j]=qoh[currStock];
			}// close if1
	  } // close modify method
thanks for any help I may recieve