2025 AP Computer Science A FRQ #2
This question involves the SignedText class, which contains methods that are used to include a signature as part of a string of text. You will write the complete SignedText class, which contains a constructor and two methods. The SignedText constructor takes two String parameters. The first parameter is a first name and the second parameter is a last name. The length of the second parameter is always greater than or equal to 1. The getSignature method takes no parameters and returns a formatted signature string constructed from the first and last names according to the following rules. • If the first name is an empty string, the returned signature string contains just the last name. • If the first name is not an empty string, the returned signature string is the first letter of the first name, a dash ("-"), and the last name, in that order. The addSignature method returns a possibly revised copy of its String parameter. The parameter will contain at most one occurrence of the object’s signature, at either the beginning or the end of the parameter. The returned string is created from the parameter according to the following rules. • If the object’s signature does not occur in the String parameter of the method, the returned String is the value of the parameter with the signature added to the end. • If the object’s signature occurs at the end of the String parameter, the returned String is the unchanged value of the parameter. • If the object’s signature occurs at the beginning of the String parameter, the returned String is the value of the original parameter with the signature removed from the beginning and appended to the end of the parameter. Intro: 00:00 Writing the class declaration: 01:40 Writing the constructor: 02:00 Writing the getSignature method: 04:18 Writing the addSignature method: 08:14 Final solution: 15:20

2025 AP Computer Science A FRQ #2 Code Execution Sequence

2025 AP Computer Science A FRQ #3A

How do I choose the "best" coding strategy? | The Reality of Python Part 2

Creator of C++: Bell Labs, Negative Overhead Abstraction, Mistakes | Bjarne Stroustrup

Are New Software Engineers Worse

'Listen Like You Might Be Wrong': Harvard Student Goes Viral For Stunning Speech On Trump Amid Feud

Teacher Calls on Quiet Student…He Replies in Fluent Latin

2025 AP Computer Science A FRQ #3B

The Professor Who Taught People How To Think (1962)

Co-Creator of Haskell: Functional Programming, Thinking in Types, Useless Languages | Simon Jones

How To Learn So Fast It’s Almost Unfair

LAWYER: If Cops Ask "Where Are You Coming From?" - Say These Words

Keynote: After the AI Hype – What’s Real, and What’s Next - Richard Campbell - 2026

The Strange Math That Predicts (Almost) Anything

The Big Short (2015): The Jenga Scene – Explaining the Financial Collapse

Tips for C Programming

Google & AWS Veteran: What Top Tier Software Architects Do Differently

Postgres is half as fast in Linux 7.0, and we always knew why

