Professional Documents
Culture Documents
Word Potential
Word Potential
import java.util.*;
String sentence;
String[] words;
int[] potentials;
sort();
for(int i=0; i<words.length; i++)
System.out.print(words[i] + " ");
System.out.println();
}
OUTPUT
Enter sentence: HELLO HOW ARE YOU DOING?
HELLO = 372
HOW = 238
ARE = 216
YOU = 253
DOING = 369
ARE HOW YOU DOING HELLO
To continue press 0: 1