HI..
i had started a thread before about the same code...not sure if i was suppose to keep going in the same one or create a new thread..i am sorry if i did anything wrong mods...
my program should just ask the user to enter words..
"The program must simply ask the user to type in a text since a text is a list of words separated by spaces"
here is my code..please let me know..what i am doing wrong..and what can i do to fix my program..
thanks..
import java.util.Scanner;
public class Words {
public static void main(String[] args) {
Scanner input = new Scanner(System.in);
System.out.print("Type in a text: ");
String text = input.nextString();
}
}