1.

Write a program in java to Input a sentence and count the no. of spaces, words andcharacters.​

Answer»

ong>EXPLANATION:

CLASS StringDemo.

{

public static VOID main(String... s)

{

int word=1;

String str="COUNT number of words and sapces";

for(int i=0;i

{



Discussion

No Comment Found