import java.io.*;
class Initial
{
void find()throws IOException
{
BufferedReader b=new BufferedReader(new InputStreamReader(System.in));
System.out.println("Enter the elements");
String s=b.readLine();
String st=new String();
int x=s.length();
char ch=s.charAt(0);
System.out.println(ch+".");
for(int i=1;i%26lt;x;i++)
{
char c=s.charAt(i);
if(c==32)
System.out.println(s.charAt(i+1));
}
int y=s.lastIndexOf(" ");
st=subString(y+2)s.length();
System.out.println("."+st);
}
}
the error message is-"; expected"
wht do i do?
I have entered d foll. program and it gives me an error message in d line st=subString(y+2)s.length();?
void find()throws IOException%26lt;---- missing ";"
st=subString(y+2)s.length(); %26lt;----------missing operation sign between subString(y+2) and s.length()
baseball cards
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment