1Strings and Arrays in Java2/1/20072Opening Discussion■Do you have any questions about the reading?■Do you have any questions about the assignment?3String Code■Create a StringHelper class and write the following methods.int countChars(String s,char c);String replaceAll(String s,char f,char t);int countWords(String s);■Write a main method in StringHelper and make some calls to see if your functions work.4Array Code■Create an ArrayHelper class and write the following methods.int sumArray(int[] a);double[] map(double[] a,MathFunction f);5Sorting and Searching Arrays■These are topics that you should have talked about a fair bit in PAD1 so I'm not going to lecture on them much now.■Instead, we'll write some code that uses arrays and these concepts and weave it into some earlier code to demonstrate a lot of the concepts that we have talked about so far.6Making a Real Bank■We made an account class and a customer class. Now that we can use arrays I want us to make a bank class that we can interact with.■I will use the Scanner class for getting input from the user. The main for this class will look more like a C program than a normal Java program, but we'll have to learn about GUIs before we can fix that.7Minute Essay■What sorts do you remember from PAD1? Explain how one of those sorts works.■Remember that the design for assignment #2 is due on
View Full Document