DOC PREVIEW
TRINITY CSCI 1321 - Strings and Arrays in Java

This preview shows page 1-2 out of 7 pages.

Save
View full document
View full document
Premium Document
Do you want full access? Go Premium and unlock all 7 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 7 pages.
Access to all documents
Download any document
Ad free experience
Premium Document
Do you want full access? Go Premium and unlock all 7 pages.
Access to all documents
Download any document
Ad free experience

Unformatted text preview:

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

TRINITY CSCI 1321 - Strings and Arrays in Java

Documents in this Course
Recursion

Recursion

11 pages

Iterators

Iterators

10 pages

Actors

Actors

9 pages

Recursion

Recursion

15 pages

Recursion

Recursion

10 pages

Threads

Threads

7 pages

Trees

Trees

11 pages

Load more
Download Strings and Arrays in Java
Our administrator received your request to download this document. We will send you the file to your email shortly.
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 2 2 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?