Java ArrayList Print printComboBoxView(ArrayList alOptionValue, String sDefaultValue)

Here you can find the source of printComboBoxView(ArrayList alOptionValue, String sDefaultValue)

Description

print Combo Box View

License

Open Source License

Declaration

public static String printComboBoxView(ArrayList alOptionValue, String sDefaultValue) 

Method Source Code


//package com.java2s;
import java.util.ArrayList;

public class Main {
    public static String printComboBoxView(ArrayList alOptionValue, String sDefaultValue) {
        String sCombo = sDefaultValue;
        if (alOptionValue != null && !alOptionValue.isEmpty()) {
            for (int iOption = 0; iOption < alOptionValue.size(); iOption++) {
                String[] sOptionItem = (String[]) alOptionValue.get(iOption);
                if (sOptionItem != null) {
                    if (sOptionItem[0].equals(sDefaultValue)) {
                        sCombo = sOptionItem[1];
                        break;
                    }/*from  w  w w . j a v a2  s .com*/
                }
            }
        }
        return sCombo;
    }
}

Related

  1. printArrayList(ArrayList arr)
  2. printArrayList(ArrayList set)
  3. printArrayList(ArrayList list)
  4. printArrayList(ArrayList _array)
  5. printArrayListInt(ArrayList list)
  6. printEdgeCycleMembership(final int[][] cyclesData, final ArrayList[] nodeCycleMembership)
  7. printListFlat(ArrayList list)
  8. printMatrix(ArrayList> grid)
  9. printReport(ArrayList words, ArrayList searched)