TRINITY CSCI 1321 - Strings and Arrays in Java (7 pages)

Previewing pages 1, 2 of 7 page document View the full content.
View Full Document

Strings and Arrays in Java



Previewing pages 1, 2 of actual document.

View the full content.
View Full Document
View Full Document

Strings and Arrays in Java

68 views

Lecture Notes


Pages:
7
School:
Trinity University
Course:
Csci 1321 - Principles of Algorithm Design II
Principles of Algorithm Design II Documents

Unformatted text preview:

Strings and Arrays in Java 2 1 2007 1 Opening Discussion Do you have any questions about the reading Do you have any questions about the assignment 2 String 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 3 Array Code Create an ArrayHelper class and write the following methods int sumArray int a double map double a MathFunction f 4 Sorting 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 5 Making 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 6 Minute 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 Tuesday 7



View Full Document

Access the best Study Guides, Lecture Notes and Practice Exams

Loading Unlocking...
Login

Join to view Strings and Arrays in Java and access 3M+ class-specific study document.

or
We will never post anything without your permission.
Don't have an account?
Sign Up

Join to view Strings and Arrays in Java and access 3M+ class-specific study document.

or

By creating an account you agree to our Privacy Policy and Terms Of Use

Already a member?