public class StringBuffer
{
public static void main(String[] args)
{
StringBuffer sbf = new StringBuffer();
sbf append; ("Hello");
sbf append; (", my name");
sbf append; (" How are you?");
System.out.println(sbf);
sbf.insert; (14," is Dalton.");
System.out.println(sbf);
sbf append; ("Can you");
sbf append; (" spell");
sbf append; (" racecar backwards?");
sbf append; (" I can");
Sbf reverse;
System.out.println("racecar : ");
System.out.println(sbf);
}
}
Error: Not a Statement
Page 1 of 13 Replies - 232 Views - Last Post: 23 January 2012 - 09:48 AM
Topic Sponsor:
#1
Error: Not a Statement
Posted 22 January 2012 - 02:30 PM
My Program when compiled has the errors at every line that has a statement using the "sbf append" method says that its not a statement. I don't know how to fix this. I tried doing what the compiler asked and all it wants me to do is get rid of the text statement after the append.
Replies To: Error: Not a Statement
#2
Re: Error: Not a Statement
Posted 22 January 2012 - 02:39 PM
Just so you know, this looks like Java and not Javascript. Us JS guys might not be all that helpful here.
#3
Re: Error: Not a Statement
Posted 22 January 2012 - 02:43 PM
Page 1 of 1
|
|

New Topic/Question
This topic is locked


MultiQuote





|