public static void bubbleSort(double unitValue[], double itemArray[][], int itemNumber[], double bagMaxWeight, DecimalFormat df){
		for(int i=0; i<4; i++){
			for(int j=i+1; j<4; j++){
				if(unitValue[i]<unitValue[j]){
					//Sorts unit values
					double temp1 = unitValue[i];
					unitValue[i] = unitValue[j];
					unitValue[j] = temp1;
					//Sorts item array also (cost, weight)
					int temp2 = itemNumber[i];
					itemNumber[i] = itemNumber[j];
					itemNumber[j] = temp2;
					//Sorts the item total costs
					double temp3 = itemArray[0][i];
					itemArray[0][i] = itemArray [0][j];
					itemArray[0][j] = temp3;
					//Sorts the item total weights
					double temp4 = itemArray[1][i];
					itemArray[1][i] = itemArray [1][j];
					itemArray[1][j] = temp4;
				}
			}
		}

		System.out.println("\n--Item Priority List (Descending Order of Unit Value)--");
		for(int i=0; i<4; i++)
			System.out.println("Item "+itemNumber[i]+" unit value: "+df.format(unitValue[i])+" $/lb");
		System.out.println();
	}