Yep, all good now.
Type: Posts; User: Mellowhype
Yep, all good now.
yeah sure, I figured out i need to put in the parameter sentence, but NOW it says i need to initialize sentence.
import java.util.Scanner;
public class PigLatin
{
...
Right, I replaced the new statement in PigLatin with PigLatinTranslator.translate(); but it gives me an error saying ican't apply () to translate.
I didn't edit PigLatin but it runs perfectly.
Here's the question first of all: Change the PigLatinTranslator from chapter 4 so that its translatemethod is static. Change the PigLatin class so it invokes the method correctly.
Original...