Computer Science, asked by rhyrhm, 1 month ago

why is this error showing?



here is the program
import java.lang.*;
class wordlength
{
public static void main(String s)
{
String st= "",word="";
int i,l;
s=s+" ";
for (i=0;i {
if (s.charAt(i)!=' ')
st = st + s.charAt(i);
else
{
word = st;
l=st.length();
System.out.print("word=" + word);
System.out.print("length="+l);
}
st="";
}}}

Attachments:

Answers

Answered by ansivaparvathi993
1

Answer:

here the error is

it cannot find symbols related to your search.

Similar questions