So i added a while statement that makes it continue as long as the string s is not null but now it wont work at all it just does the first part of the driver class where it reports the inputs but...
Type: Posts; User: Rusak
So i added a while statement that makes it continue as long as the string s is not null but now it wont work at all it just does the first part of the driver class where it reports the inputs but...
I think i got it. It compiles but the dam thing wont work now lol.
import java.util.StringTokenizer;
import java.lang.*;
public class PigLatin{
public String[] phrases;
public String...
So the first part of the driver class allows the user to put in mulitiple inputs that are strings in an array. each separate input is a string in consecutive positions on the array until a blank...
so i fixed the piglatin constructor but i still dont get the stringtokenizer one.
import java.util.StringTokenizer;
import java.lang.*;
public class PigLatin{
public String[] phrases;
...
So here are the assignment instructions:
For this assignment, your job is to create a program that reads in multiple lines of text, and then produces the translation of that text into the English...