A sentence of multiple words separated by spaces can be stored into an array of String objects using:
String[] wordArray = JOptionPane.showInputDialog(null,"Enter a word or a sentence").split( " "...
Type: Posts; User: GregBrannon
A sentence of multiple words separated by spaces can be stored into an array of String objects using:
String[] wordArray = JOptionPane.showInputDialog(null,"Enter a word or a sentence").split( " "...
Welcome to the forum! Please read this topic to learn how to post code in code or highlight tags and other useful info for newcomers.