i hope its not too late for your assignment..:)
import java.io.InputStreamReader;
import java.util.Scanner;
class Test{
public static void main(String[] args) {
Scanner sc =...
Type: Posts; User: relixus
i hope its not too late for your assignment..:)
import java.io.InputStreamReader;
import java.util.Scanner;
class Test{
public static void main(String[] args) {
Scanner sc =...
split the sentence using split("//s") method, this will return u an array of String. u can then put the entry on idex 0 to the end of the array and print.