181k views
0 votes
Write a method , makeSubjectLine, that gets a String argument and returns the same String but with "Subject: " in front of it. So if the argument is "Are you going to the show?" the method returns "Subject: Are you going to the show?".

1 Answer

3 votes
String makeSubjectLine(String line) {
return "Subject: " + line;
}
User Edmond
by
6.5k points