TPT
Total:
$0.00
AP Computer Science A - Java String Practice! String selection
AP Computer Science A - Java String Practice! String selection
AP Computer Science A - Java String Practice! String selection
AP Computer Science A - Java String Practice! String selection
Share

Description

A worksheet that allows students to practice a common AP Computer Science exam question: copying an array of Strings while excluding a specific target String. Includes fully coded answer!

Example:

Write a method that takes in an array of Strings and a “target” string, and returns a new array of Strings that does not include the target String.

String[] arrStr = {“a”, “c”, “u”, “ll”, “h”};

String target = “c”;

System.out.println(stringSelect(arrStr, target));

>> [“s”, “u”, “ll”, “h”]

Report this resource to TPT
Reported resources will be reviewed by our team. Report this resource to let us know if this resource violates TPT's content guidelines.

AP Computer Science A - Java String Practice! String selection

Rated 3.95 out of 5, based on 2 reviews
4.0 (2 ratings)
ScienceSimulations
23 Followers
FREE

Highlights

Digital downloads
Grades icon
Grades
9th - 12th
Answer Key
Included

Description

A worksheet that allows students to practice a common AP Computer Science exam question: copying an array of Strings while excluding a specific target String. Includes fully coded answer!

Example:

Write a method that takes in an array of Strings and a “target” string, and returns a new array of Strings that does not include the target String.

String[] arrStr = {“a”, “c”, “u”, “ll”, “h”};

String target = “c”;

System.out.println(stringSelect(arrStr, target));

>> [“s”, “u”, “ll”, “h”]

Report this resource to TPT
Reported resources will be reviewed by our team. Report this resource to let us know if this resource violates TPT's content guidelines.

Reviews

4.0
Rated 3.95 out of 5, based on 2 reviews
2
ratings
All verified TPT purchases
Rated 4 out of 5
August 23, 2024
Strings are an important topic and one that is difficult to master! This helped my students.
Marti S.
28 reviews
Grades taught: 10th, 11th
Rated 3.9 out of 5
November 16, 2019
Computing Zone
1 review

Questions & Answers

Loading
Loading