Ask your own question, for FREE!
MIT 6.00 Intro Computer Science (OCW) 13 Online
OpenStudy (anonymous):

Hi I'm supposed to write a wordcount program by it's not working please help. import. java.util.*; public class WordCount { public static void main(String[]args) { final int Lines=6; Scanner in=new Scanner (System.in) String paragraph = ""; System.out.println( "Please input"+ Lines + "lines of text."); for (int i=0; i < Lines; i+=1) { paragraph=paragraph+""+in.nextLine() } System.out.println(paragraph); System.out.println(paragraph.length()); String word="" int WordCount=0 for (int i=0; i

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!