i have write this code :
import javax.swing.*;
public class strexample
{
public static void main(
String[] args)
{
String s1="hello how r u";
String output;
output += "\nThe String reversed is: ";
for(int count = s1.length()-1;count>=0;count--)
{
output += s1.chatAt(1);
}
JOptionPane.showMessageDialog(null, output, "String Example", JOptionPane.INFORMATION_MESSAGE);
System.exit(0);
}
}
and getting this problem....
---------- Compile
Java ----------
strexample.java:15: cannot resolve symbol
symbol : method chatAt (int)
location: class java.lang.String
output += s1.chatAt(1);
^
1 error
plz.. help..