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
1
Answer:
here the error is
it cannot find symbols related to your search.
Similar questions