Here it is:
the user enters string and then then they enter a word from the sentnce they just entered in. then the program is supposed to take out the word they entered and then display the new sentence..
How to do this ????????
really need help PLEASE... :(
this is what i have so far...
import java.util.Scanner;
/**
*
*
*
*/
public class RemoveString {
public static void main(String[] args) {
// TODO Auto-generated method stub
Scanner input=new Scanner(System.in);
String sent;
String string;
String part;
System.out.println("Enter a sentence:");
sent=input.nextLine();
System.out.println("Enter a string:");
string=input.nextLine();
}
}