Week 1: Apex Challenges

In week1 we’ll start in the shallow end of the Apex pool, with some basic method construction, intake of arguments, and String manipulation. Strings are one of the primitive data types available in Apex.

Once you’re ready to check an element of this challenge, just enter the following command into the terminal at your project directory’s location (e.g. if you’re using a ZS50 Sandbox the terminal will launch in the correct location):

zs50 check sayHello

Remember, you can also “scaffold” a blueprint class into your terminal window to help you get started via the command:

zs50 scaf sayHello

SayHello class

Create a public class SayHello and, inside it…

sayHi

Implement a method sayHi that:

sayMyName

Implement a method sayMyName that:

speak

Implement a method speak that:

Once your class and methods pass all validations you’ll see a nice, if anti-climactic, little Success! message.