Find Us On: Facebook Twitter Rss Feed Blog
Need To Register? Sign Up Login

Java - Index, Index2, ThreeArrayLists

msladona
msladona 


Program files for each of the following three programs Index Index2 ThreeArrayLists Attachments Tags Clarifications

Answers

Java - Index, Index2, ThreeArrayLists - Solution

dickersonka
dickersonka 



Attached is the solution to the Java - Index, Index2, ThreeArrayLists assignment including source and comments Attachments
Index.zip (83 K) Download
Preview

Preview
txtField = new TextArea(); add(txtField); //character to search for add(new Label("Enter a character:")); txtSearchFor = new TextField("", 4); add(txtSearchFor); // grab key events in the bottom text box txtSearchFor.addKeyListener(this); // also grab the event when the user closes the

Preview
65)); //Get number of occurrences of character int numOccurrences = totals[i]; //Add to results resultList.append(character.toLowerCase() + ":\t" + numOccurrences + "\n"); } } }; //Search action for button btnSearch = new JButton(searchAction); textLable.setAlignmentX(CENTER_ALIGNMENT); btnSearch.setAlignmentX(CENTER_ALIGNMENT);

Preview

Preview
list * @param priceList Price list * @param quantityList Quantity list * @param amountList Amount list */ private static void extend(List<Double> priceList, List<Double> quantityList, List<Double> amountList) { //Loop through price list for (int i = 0; i < priceList.size(); i++) { //Update

Screenshots
Screenshot
Screenshot
Purchase Answer